Event.getDevice

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

class Event
getDevice
()

Return Value

Type: gdk.device.Device

a #GdkDevice, or null.