device
pub fn x11_device_get_id(device: &X11DeviceCore) -> i32
those managed via XInput 1.x), will return 0.
a gdk::Device
gdk::Device
the XInput2 device ID.