WebPlatformForEmbedded / libwpe

General-purpose library specifically developed for the WPE-flavored port of WebKit.
BSD 2-Clause "Simplified" License
49 stars 36 forks source link

Add API to allow handling pointer lock requests and events #125

Closed carlosgcampos closed 1 year ago

carlosgcampos commented 1 year ago

Similar to the fullscreen API there's now a pointer lock handler that can be set to handle the requests to lock or unlock the pointer. A new input type wpe_input_pointer_lock_event has been added, which extends wpe_input_pointer_event to include the movement delta required by pointer lock motion events.