Provides access to raw mouse movement by locking the target of mouse events to a single element and hiding the mouse cursor.
The Pointer Lock API provides applications the ability to directly interpret mouse movements as an input method, rather than being limited to only reading the position of the mouse cursor. A popular example is that of first person movement controls in three dimensional graphics applications such as games: movement of the mouse is interpreted to control the rotation/direction of the player's camera; no mouse cursor is displayed, and the movement is not limited to the traditional boundaries (such as the user agent's window, or the overall screen) that the mouse cursor is usually subject to, meaning that any mouse movements can be tracked indefinitely in any direction. See a Simple Demo: (https://mdn.github.io/dom-examples/pointer-lock/), and used in e.g. Xbox Cloud Gaming, GeForce Now, Amazon Luna, poki.com, crazygames.com, autodesk.com, etc. The pointer lock API is supported on Desktop platforms, this feature is for supporting this API for Android.