Function input_sys::libinput_event_get_device [] [src]

pub unsafe extern "C" fn libinput_event_get_device(
    event: *mut libinput_event
) -> *mut libinput_device

@ingroup event

Return the device associated with this event. For device added/removed events this is the device added or removed. For all other device events, this is the device that generated the event.

This device is not refcounted and its lifetime is that of the event. Use libinput_device_ref() before using the device outside of this scope.

@return The device associated with this event