WaylandDevice#

class WaylandDevice(**properties: Any)#

Superclasses: Device, Object

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 GdkDevices that possibly coalesce multiple hardware devices (eg. mouse, keyboard, touch,…), this function will return None.

This is most notably implemented for devices of type %GDK_SOURCE_PEN, %GDK_SOURCE_TABLET_PAD.

get_xkb_keymap() Any | None#

Returns the xkb_keymap of a GdkDevice.

Added in version 4.4.