@ RECOGNIZER_STATE_IN_PROGRESS
@ RECOGNIZER_STATE_FAILED
@ RECOGNIZER_STATE_COMPLETED
@ RECOGNIZER_STATE_POSSIBLE
const stroke_t * get_stroke()
Access array of stroke_t of size MAX_TOUCHES.
Data structure for stroke gesture data.
Data structure for tap data.
To use the gesture library, users create touch events and fill in the appropriate fields.
int set_on_tap(void(*listener)(const tap_t *))
Subscribe listener to tap gesture updates.
void init_tap()
Initialize tap data structures.
void(* on_tap)(const tap_t *)=0
const tap_t * get_tap()
Access tap data array of size MAX_TOUCHES.
void recognize_tap(const touch_event_t *event)
Recognize tap gesture.