Title: Pointer Lock API - Web APIs | MDN
Open Graph Title: Pointer Lock API - Web APIs | MDN
Description: The Pointer Lock API (formerly called Mouse Lock API) provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport. It gives you access to raw mouse movement, locks the target of mouse events to a single element, eliminates limits on how far mouse movement can go in a single direction, and removes the cursor from view. It is ideal for first-person 3D games, for example.
Open Graph Description: The Pointer Lock API (formerly called Mouse Lock API) provides input methods based on the movement of the mouse over time (i.e., deltas), not just the absolute position of the mouse cursor in the viewport. It gives you access to raw mouse movement, locks the target of mouse events to a single element, eliminates limits on how far mouse movement can go in a single direction, and removes the cursor from view. It is ideal for first-person 3D games, for example.
Opengraph URL: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API
Domain: developer.mozilla.org
| og:locale | en_US |
| og:image | https://developer.mozilla.org/mdn-social-image.46ac2375.png |
| og:image:type | image/png |
| og:image:height | 1024 |
| og:image:width | 1024 |
| og:image:alt | The MDN logo |
| og:site_name | MDN Web Docs |
| twitter:card | summary |
| twitter:creator | MozDevNet |
| position | 3 |
Links:
Viewport: width=device-width, initial-scale=1.0