get_current_event_device

function get_current_event_device():Gdk.Device {
    // Gjs wrapper for gtk_get_current_event_device()
}

If there is a current event and it has a device, return that device, otherwise return null.

Returns

a Gdk.Device, or null