Is it possible to add mouse locking in the New Keyboard extensions?

Hi, @richard, is it possible to add mouse locking into the Keyboard Events Extension?

1 Like

no it’s not. we run in the browser which does not allow any kind of mouse locking/capturing behavior. and that’s generally a good thing; imagine if malicious ads could capture your mouse and not let you leave until you clicked on them!

1 Like

actually i stand corrected: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API

but i don’t have plans to work on this right now; it would be sort of complicated to translate into blocks. maybe in the future!

3 Likes

Ok. Thank you!

1 Like

I was about to mention that I’ve definitely played browser games with this functionality. The only reason we would want it is for easy FPS games. I can’t see any other reason, unless you use the mouse movement like a joystick kinda? Idk.