Gesture Library
|
Go to the source code of this file.
Functions | |
void | init_hold_and_drag () |
Initialize hold and drag data structures. More... | |
void | recognize_hold_and_drag (const touch_event_t *event) |
Recognize hold and drag gesture. More... | |
const hold_and_drag_t * | get_hold_and_drag () |
Access hold and drag data array of size MAX_TOUCHES. More... | |
int | set_on_hold_and_drag (void(*listener)(const hold_and_drag_t *)) |
Subscribe listener to hold and drag gesture updates. More... | |
Variables | |
hold_and_drag_t | hold_and_drag_d [MAX_TOUCHES] |
void(* | on_hold_and_drag )(const hold_and_drag_t *)=0 |
const hold_and_drag_t* get_hold_and_drag | ( | ) |
Access hold and drag data array of size MAX_TOUCHES.
Definition at line 37 of file hold_and_drag.c.
void init_hold_and_drag | ( | ) |
Initialize hold and drag data structures.
Definition at line 13 of file hold_and_drag.c.
void recognize_hold_and_drag | ( | const touch_event_t * | event | ) |
Recognize hold and drag gesture.
event | touch event to recognize |
Definition at line 28 of file hold_and_drag.c.
int set_on_hold_and_drag | ( | void(*)(const hold_and_drag_t *) | listener | ) |
Subscribe listener to hold and drag gesture updates.
listener | accepts a const hold_and_drag_t* |
Definition at line 41 of file hold_and_drag.c.
hold_and_drag_t hold_and_drag_d[MAX_TOUCHES] |
Definition at line 10 of file hold_and_drag.c.
void(* on_hold_and_drag) (const hold_and_drag_t *)=0 | ( | const hold_and_drag_t * | ) |
Definition at line 11 of file hold_and_drag.c.