Input & Interaction
Pointer Lock API
Lock the mouse pointer inside canvas or element bounds for 3D games and controls.
Checking support...
Feature Not SupportedThis browser does not support the Pointer Lock API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
element.requestPointerLock();
About the Pointer Lock API Web API
Pointer Lock API provides raw mouse movement data without mouse position boundaries.
Specification:W3C & WHATWG Web API Standard
Sponsored Content