WaylandDevice
The Wayland implementation of GdkDevice
.
Beyond the regular Device
API, the Wayland implementation
provides access to Wayland objects such as the wl_seat
with
get_wl_seat
, the wl_keyboard
with
get_wl_keyboard
and the wl_pointer
with
get_wl_pointer
.
Methods
- class WaylandDevice
- get_node_path() str | None
Returns the
/dev/input/event*
path of this device.For
GdkDevice
’s that possibly coalesce multiple hardware devices (eg. mouse, keyboard, touch,…), this function will returnNone
.This is most notably implemented for devices of type
%GDK_SOURCE_PEN
,%GDK_SOURCE_TABLET_PAD
.