void init_drag()
Initialize drag data structures.
drag_t drag_d[MAX_TOUCHES]
void(* on_drag)(const drag_t *)=0
int set_on_drag(void(*listener)(const drag_t *))
Subscribe listener to drag gesture updates.
const drag_t * get_drag()
Access drag data array of size MAX_TOUCHES.
void recognize_drag(const touch_event_t *event)
Recognize drag gesture.
@ 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 drag gesture data.
Data structure for stroke gesture data.
To use the gesture library, users create touch events and fill in the appropriate fields.