Use raw mouse input in free flight mode by Macil · Pull Request #763 · BlueMap-Minecraft/BlueMap

Conversation

@Macil

This PR uses requestPointerLock's unadjustedMovement option to enable raw mouse input in full-screen free flight mode.

@TBlueF

I am getting (on chrome w/ linux mint) this error with this change:
image
And the pointer-lock is not aquired.

So i am guessing there'd need to be some fallback ..
Also on how many browsers have you tested this? Does it still work fine on all browsers? My worry is that it (when it is supported and doesn't throw an error) could mess with the sensitivity on some systems :)

@Macil

Whoops, I thought the worst case scenario was that a browser that didn't recognize it would ignore it (which was the behavior I saw in Firefox), but apparently browsers that recognize the option may not always support it. Now that I re-read https://web.dev/articles/disable-mouse-acceleration more carefully, I see that they have an example trying again without the option if it failed with it. I've adapted this PR to do that.

2 participants

@Macil @TBlueF