WebGL: Pointer Lock and First Person Shooter Controls
html5rocks.com
html5rocks.com
Like JavaScript, this needs a default-disable, on for trusted sites only mode.
Seems pretty solid to me.
Remember all the shitty spam adverts themed to look like Windows XP dialog boxes? I can't wait to see what the bottom-feeders can come up with given this sort of feature.
At least it sounds like Chromium uses a modal yes/no question bar.
The mouse sends high DPI information to the OS, and the OS sends the applications the mouse info they request.
For drawing the pointer in the GUI, lots of DPIs correspond to moving just one pixel.
However, that's just too low resolution for gaming, where the full DPI information is preferable. Also, for gaming, mouse acceleration should be disabled.
The solution in other games is to read the original high DPI info, instead of the mouse screen coordinates.
Of course you are right about spam, but there's a technical reason for this implementation.
Now when all browsers support it I will look more closely.
Thanks.
If so that may turn out to be a bit short sighted in the long term.
Pointer Lock seems to work fine.
In console, the difference I noticed is that FF has this error: Firefox can't establish a connection to the server at ws://./. - shoote...tBqO.js (line 57)
Chrome doesn't have that error.