gesture_add_mustfail()

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)

Since:

BlackBerry 10.0.0

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 (For the qcc command, use -l gestures to link against this library)

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.