Module relative_pointer

Source
Available on crate feature wayland_frontend only.
Expand description

Utilities for relative pointer support

PointerHandle::relative_motion sends relative pointer events to any ZwpRelativePointerV1 objects created by the client.

extern crate wayland_server;
extern crate smithay;

use smithay::wayland::relative_pointer::RelativePointerManagerState;
use smithay::delegate_relative_pointer;

let state = RelativePointerManagerState::new::<State>(&display.handle());

delegate_relative_pointer!(State);

Structs§

RelativePointerManagerState
State of the relative pointer manager
RelativePointerUserData
User data of ZwpRelativePointerV1 object