gesture_add_mustfail()

Updated: October 26, 2022

Add a gesture to the 'must fail' list

Synopsis:

#include <gestures/types.h>
int gesture_add_mustfail(gesture_base_t *target,
                         gesture_base_t *mustfail)

Arguments:

target
The gesture dependent on the failure of the second gesture.
mustfail
The gesture that must fail. This gesture is added to the 'must fail' list of the target gesture.

Library:

libgestures

Description:

This function adds a gesture to the 'must fail' list of another gesture. That is, the gesture added to the list must fail in order for the gesture that owns the list to complete.

Returns:

0 on sucess; -1 on error.