Function gdkx11::functions::x11_device_manager_lookup[][src]

pub fn x11_device_manager_lookup<P: IsA<X11DeviceManagerCore>>(
    device_manager: &P,
    device_id: i32
) -> Option<X11DeviceCore>
Expand description

Returns the gdk::Device that wraps the given device ID.

device_manager

a gdk::DeviceManager

device_id

a device ID, as understood by the XInput2 protocol

Returns

The gdk::Device wrapping the device ID, or None if the given ID doesn’t currently represent a device.