void recognize_hold_and_drag(const touch_event_t *event)
Recognize hold and drag gesture.
struct hold_and_drag hold_and_drag_t
Data structure for hold and drag data.
void init_hold_and_drag()
Initialize hold and drag data structures.
const hold_and_drag_t * get_hold_and_drag()
Access hold and drag data array of size MAX_TOUCHES.
int set_on_hold_and_drag(void(*listener)(const hold_and_drag_t *))
Subscribe listener to hold and drag gesture updates.
enum state state_t
This represents the state of individual gesture recognizers.
Data structure for hold and drag data.
To use the gesture library, users create touch events and fill in the appropriate fields.