Skip to main content

Crate ravenrs_wayland_gestures

Crate ravenrs_wayland_gestures 

Source
Expand description

Touchpad pinches on Wayland. winit 0.30 delivers them only on macOS and iOS, so this listens for them on the connection winit already has: gestures go to the client that owns the window, and a connection of our own would never hear of them.

This crate holds the only unsafe call in the workspace, and goes away with a winit that delivers these gestures on Wayland.

Structs§

PinchTracker
Turns the total scale a gesture reports into how much it changed since the last event.

Functions§

listen
Calls on_pinch on another thread with how much each touchpad pinch changed, as a fraction. Off Wayland’s systems it does nothing.