Hacker News new | past | comments | ask | show | jobs | submit login

It's the pointer lock API:

https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Loc...

The browser tells you when a page calls requestPointerLock(), and tells you how to exit it, similar to the fullscreen API.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: