-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement cursor grabbing on web using Pointer Lock API #1674
Copy link
Copy link
Closed
Labels
DS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - platform parityUnintended platform differencesUnintended platform differences
Description
This locks the mouse cursor at a specific position and hides it so that relative mouse movements can be captured without the cursor ever leaving the element or getting stuck on the screen edge. It does not just limit movement within the canvas area like it does on Windows, however the docs indicates that this behaviour is also the same for macOS and Wayland (minus the automatic hiding of cursor) so I believe this will fit nicely.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - platform parityUnintended platform differencesUnintended platform differences