Function libinput_event_touch_get_seat_slot
pub unsafe extern "C" fn libinput_event_touch_get_seat_slot(
event: *mut libinput_event_touch,
) -> i32
Expand description
@ingroup event_touch
Get the seat slot of the touch event. A seat slot is a non-negative seat wide unique identifier of an active touch point.
Events from single touch devices will be represented as one individual touch point per device.
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 seat slot of the touch event