const hold_t * get_hold()
Access hold data array of size MAX_TOUCHES.
void recognize_hold(const touch_event_t *event)
Recognize hold gesture.
int set_on_hold(void(*listener)(const hold_t *))
Listen to hold events.
void init_hold()
Initialize hold data structures.
struct hold hold_t
Data structure for hold data.
enum state state_t
This represents the state of individual gesture recognizers.
Data structure for hold data.
To use the gesture library, users create touch events and fill in the appropriate fields.