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