#include "drag.h"
#include "math.h"
#include "stroke.h"
#include "utils.h"
Go to the source code of this file.
◆ 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.
◆ drag_d
Definition at line 7 of file drag.c.
◆ on_drag
Definition at line 8 of file drag.c.