Gesture callback function prototype.
#include <sys/queue.h> #include "input/event_types.h" #include "gestures/bucket.h"
typedef void(* gesture_callback_f)(struct gesture_base *gesture, mtouch_event_t *event, void *param, int async);
This callback function is invoked every time a gesture changes state, with the exception of the transition from UNRECOGNIZED to FAILED.
the thread that called gestures_set_process_event() (async == 0)
the timer thread (async == 1)