Event.getDevice

gdk.device.Device getDevice()

If the event contains a “device” field, this function will return it, else it will return null.

Returns

a #GdkDevice, or null.