Go to the source code of this file.
|
struct | drag |
| Data structure for drag gesture data. More...
|
|
◆ drag_t
Data structure for drag gesture data.
◆ get_drag()
Access drag data array of size MAX_TOUCHES.
- Returns
- Address of first element of drag data array of size MAX_TOUCHES
Definition at line 30 of file drag.c.
◆ init_drag()
Initialize drag data structures.
Definition at line 10 of file drag.c.
◆ recognize_drag()
Recognize drag gesture.
- Parameters
-
event | touch event to recognize |
Definition at line 23 of file drag.c.
◆ set_on_drag()
int set_on_drag |
( |
void(*)(const drag_t *) |
listener | ) |
|
Subscribe listener to drag gesture updates.
- Parameters
-
listener | accepts a const drag_t* |
- Returns
- 0 if first listener, 1 if replacing existing listener
Definition at line 34 of file drag.c.