gesture_callback_f

Updated: October 26, 2022

Gesture callback function prototype

Synopsis:

#include <gestures/types.h>
typedef void(* gesture_callback_f)(struct gesture_base *gesture,
             mtouch_event_t *event,
             void *param,
             int async);

Arguments:

gesture
A pointer to the gesture.
event
A pointer to the last touch event.
param
A pointer to the parameter list.
async
Indicator of which thread invoked this callback:

Library:

libgestures

Description:

This callback function is invoked every time a gesture changes state, with the exception of the transition from UNRECOGNIZED to FAILED.

Note that if the event passed to the callback is NULL, it means the callback was invoked following a timer callback (as opposed to an event coming in).

Returns:

Nothing.