Device.associatedDevice

gdk.device.Device associatedDevice() @property

Get associatedDevice property.

Returns

Associated pointer or keyboard with this device, if any. Devices of type #GDK_DEVICE_TYPE_MASTER

always come in keyboard/pointer pairs. Other device types will have a null associated device.