[][src]Function input_sys::libinput_event_gesture_get_finger_count

pub unsafe extern "C" fn libinput_event_gesture_get_finger_count(
    event: *mut libinput_event_gesture
) -> c_int

@ingroup event_gesture

Return the number of fingers used for a gesture. This can be used e.g. to differentiate between 3 or 4 finger swipes.

This function can be called on all gesture events and the returned finger count value remains the same for the lifetime of a gesture. Thus, if a user puts down a fourth finger during a three-finger swipe gesture, libinput will end the three-finger gesture and, if applicable, start a four-finger swipe gesture. A caller may decide that those gestures are semantically identical and continue the two gestures as one single gesture.

@return the number of fingers used for a gesture