|
Gesture Library
|
Go to the source code of this file.
Data Structures | |
| struct | hold_and_drag |
| Data structure for hold and drag data. More... | |
Typedefs | |
| typedef struct hold_and_drag | hold_and_drag_t |
| Data structure for hold and drag data. More... | |
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... | |
| typedef struct hold_and_drag hold_and_drag_t |
Data structure for hold and drag data.
| 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.