enum state state_t
This represents the state of individual gesture recognizers.
struct rotate rotate_t
Data structure for rotate gesture data.
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.
int set_on_rotate(void(*listener)(const rotate_t *))
Subscribe listener to rotate gesture updates.
void init_rotate()
Initialize rotate data structures.
Data structure for rotate gesture data.
To use the gesture library, users create touch events and fill in the appropriate fields.