const multidrag_t * get_multidrag()
Access array of multidrag_t of size MAX_TOUCHES.
state
This represents the state of individual gesture recognizers.
@ RECOGNIZER_STATE_IN_PROGRESS
@ RECOGNIZER_STATE_FAILED
@ RECOGNIZER_STATE_COMPLETED
@ RECOGNIZER_STATE_POSSIBLE
const rotate_t * get_rotate()
Access array of rotate_t of size MAX_TOUCHES.
void recognize_rotate(const touch_event_t *event)
Recognize rotate gesture. This gesture locks the number of fingers once any finger starts moving.
void(* on_rotate)(const rotate_t *)=0
int set_on_rotate(void(*listener)(const rotate_t *))
Subscribe listener to rotate gesture updates.
void init_rotate()
Initialize rotate data structures.
rotate_t rotate_d[MAX_TOUCHES]
Data structure for multidrag gesture data.
Data structure for rotate gesture data.
To use the gesture library, users create touch events and fill in the appropriate fields.