Function libinput_event_touch_get_slot
pub unsafe extern "C" fn libinput_event_touch_get_slot(
event: *mut libinput_event_touch,
) -> i32
Expand description
@ingroup event_touch
Get the slot of this touch event. See the kernel’s multitouch protocol B documentation for more information.
If the touch event has no assigned slot, for example if it is from a single touch device, this function returns -1.
For events not of type @ref LIBINPUT_EVENT_TOUCH_DOWN, @ref LIBINPUT_EVENT_TOUCH_UP, @ref LIBINPUT_EVENT_TOUCH_MOTION or @ref LIBINPUT_EVENT_TOUCH_CANCEL, this function returns 0.
@note It is an application bug to call this function for events of type other than @ref LIBINPUT_EVENT_TOUCH_DOWN, @ref LIBINPUT_EVENT_TOUCH_UP, @ref LIBINPUT_EVENT_TOUCH_MOTION or @ref LIBINPUT_EVENT_TOUCH_CANCEL.
@return The slot of this touch event