3 ms·
Pointer lock does that, though I'm not sure what all browsers support it. Chrome/Desktop does: https://mdn.github.io/dom-examples/pointer-lock/ https://mdn.gi
by tyingq 6y ago
Pointer lock does that, though I'm not sure what all browsers support it. Chrome/Desktop does:
https://mdn.github.io/dom-examples/pointer-lock/ https://mdn.github.io/dom-examples/pointer-lock/
It's a bit odd to me that it doesn't ask for any kind of permission on Chrome, just that a user click initiates it. It does briefly pop a hint that "<esc>" will release the mouse.