PointerLockControls
PointerLockControls is a JavaScript API that allows web applications to gain exclusive control over the mouse pointer. This enables immersive experiences, particularly in 3D applications like games, where the cursor is typically hidden and its movement is used to control the camera.
When PointerLockControls is activated, the mouse cursor is confined to the browser window and its movement
To use PointerLockControls, a web application must first request pointer lock from the user. This is typically
The API provides methods to request and exit lock, and it emits events to notify the application