3 ms·
Unfortunately, you can't move the mouse back to the center. Javascript does not allow hijacking the mouse. I bet you can imagine why. If there's a better way to
by jasonjmcghee 10y ago
Unfortunately, you can't move the mouse back to the center. Javascript does not allow hijacking the mouse. I bet you can imagine why. If there's a better way to do this, by all means make a PR. I know this is a dreadful solution, but it's better than nothing.
EDIT: I stand corrected! I found a way! PR in. I'm using requestPointerLock
- deleted 10y ago[deleted]
- Hydraulix989 10y agoYes, Unity WebGL uses it as well, pretty sure.