macOS: Pointer Lock API
shaunlebron opened this issue · 2 comments
shaunlebron commented
This helps prevent accidentally exiting the view when tracking touch points in #249.
Web:
Chromium:
macOS:
- NSCursor hide / unhide
- CGAssociateMouseAndMouseCursorPosition (freeze/thaw cursor)
tonsky commented
Will you make a PR?
shaunlebron commented
PR is up. But I have to do some more digging to see how chromium adds the movementX
and movementY
properties to the mouse move event when pointer is locked.
edit: chromium just uses the deltaX and deltaY properties from the NSEvent
edit2: done