34 if (
zoom_d[index].zoomed) {
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
Data structure for multidrag gesture data.
To use the gesture library, users create touch events and fill in the appropriate fields.
Data structure for zoom gesture data.
void(* on_zoom)(const zoom_t *)=0
int set_on_zoom(void(*listener)(const zoom_t *))
Subscribe listener to zoom gesture updates.
zoom_t zoom_d[MAX_TOUCHES]
void init_zoom()
Initialize zoom data structures.
void recognize_zoom(const touch_event_t *event)
Recognize zoom gesture. This gesture locks the number of fingers once any finger starts moving.
const zoom_t * get_zoom()
Access array of zoom_t of size MAX_TOUCHES.