#include "tap.h"
#include "math.h"
#include "stroke.h"
#include "utils.h"
Go to the source code of this file.
◆ get_tap()
Access tap data array of size MAX_TOUCHES.
- Returns
- Address of first element of tap data array of size MAX_TOUCHES
Definition at line 34 of file tap.c.
◆ init_tap()
Initialize tap data structures.
Definition at line 12 of file tap.c.
◆ recognize_tap()
Recognize tap gesture.
- Parameters
-
event | touch event to recognize |
Definition at line 27 of file tap.c.
◆ set_on_tap()
int set_on_tap |
( |
void(*)(const tap_t *) |
listener | ) |
|
Subscribe listener to tap gesture updates.
- Parameters
-
Listener | accepts a const tap_t* |
- Returns
- 0 if first listener, 1 if replacing existing listener
Definition at line 38 of file tap.c.
◆ on_tap
void(* on_tap) (const tap_t *)=0 |
( |
const tap_t * |
| ) |
|
Definition at line 10 of file tap.c.
◆ tap_d
Definition at line 9 of file tap.c.