const double_tap_t * get_double_tap()
returns an array of the ongoing double_touch data for each finger
void recognize_double_tap(const touch_event_t *event)
reads the last tap and stroke data and determines whethers this new stroke is part of a double_tap ev...
void init_double_tap()
initializes the data array by setting all field to 0/NULL
struct double_tap double_tap_t
holds the state, last location, and timestamp of a double tap instance
int set_on_double_tap(void(*listener)(const double_tap_t *))
Listen to double_tap events.
enum state state_t
This represents the state of individual gesture recognizers.
holds the state, last location, and timestamp of a double tap instance
To use the gesture library, users create touch events and fill in the appropriate fields.