const hold_t * get_hold()
Access hold data array of size MAX_TOUCHES.
void recognize_hold(const touch_event_t *event)
Recognize hold gesture.
void(* on_hold)(const hold_t *)=0
int set_on_hold(void(*listener)(const hold_t *))
Listen to hold events.
hold_t hold_d[MAX_TOUCHES]
void init_hold()
Initialize hold data structures.
@ RECOGNIZER_STATE_IN_PROGRESS
@ RECOGNIZER_STATE_FAILED
@ RECOGNIZER_STATE_COMPLETED
const stroke_t * get_stroke()
Access array of stroke_t of size MAX_TOUCHES.
Data structure for hold data.
Data structure for stroke gesture data.
To use the gesture library, users create touch events and fill in the appropriate fields.