#include "gesturelib.h"
#include "gestureparams.h"
#include "math.h"
#include "multistroke.h"
#include "recognizer.h"
#include "stroke.h"
#include "tap.h"
Go to the source code of this file.
|
struct | double_tap |
| holds the state, last location, and timestamp of a double tap instance More...
|
|
◆ DIST_X
◆ DIST_Y
◆ double_tap_t
holds the state, last location, and timestamp of a double tap instance
◆ get_double_tap()
returns an array of the ongoing double_touch data for each finger
- Returns
- array of size MAX_TOUCHES of double_touch data
Definition at line 186 of file double.c.
◆ init_double_tap()
initializes the data array by setting all field to 0/NULL
Definition at line 11 of file double.c.
◆ recognize_double_tap()
reads the last tap and stroke data and determines whethers this new stroke is part of a double_tap event
- Parameters
-
Definition at line 30 of file double.c.
◆ set_on_double_tap()
int set_on_double_tap |
( |
void(*)(const double_tap_t *) |
listener | ) |
|
Listen to double_tap events.
- Parameters
-
listener | accepts a const double_tap_t* |
- Returns
- 0 if first listener, 1 if replacing existing listener
Definition at line 52 of file double.c.