Pointer Lock APIExternal Link

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

API that provides access to raw mouse movement data. This is done by ignoring boundaries resulting from screen edges where the cursor can't go beyond, providing proper control for first person or real time strategy games.

IE
Edge
Firefox
Chrome
Safari
Safari iOS
Opera Mini
Chrome Android
Android Browser
Samsung Internet
Globals: 36.35% of all users can use this feature, 36.35% fully supported, 0% partially supported
✓Supported
✗Not supported
Partial support
Prefixed
Behind a Flag