#include "hold.h"
#include "math.h"
#include "stroke.h"
#include "utils.h"
Go to the source code of this file.
◆ get_hold()
Access hold data array of size MAX_TOUCHES.
- Returns
- Address of first element of hold data array of size MAX_TOUCHES
Definition at line 44 of file hold.c.
◆ init_hold()
Initialize hold data structures.
Definition at line 12 of file hold.c.
◆ recognize_hold()
Recognize hold gesture.
- Parameters
-
event | touch event to recognize |
Definition at line 27 of file hold.c.
◆ set_on_hold()
int set_on_hold |
( |
void(*)(const hold_t *) |
listener | ) |
|
Listen to hold events.
- Parameters
-
listener | accepts a const hold_t* |
- Returns
- 0 if first listener, 1 if replacing existing listener
Definition at line 34 of file hold.c.
◆ hold_d
Definition at line 9 of file hold.c.
◆ on_hold