Not TestedTesting not done, may not work properly
Input & Interaction

Pointer Lock API

Lock the mouse pointer inside canvas or element bounds for 3D games and controls.

Checking support...
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