6 #ifndef STROKE_CACHE_SIZE
8 #define STROKE_CACHE_SIZE 30
enum state state_t
This represents the state of individual gesture recognizers.
void init_stroke()
Initialize stroke data structures.
struct stroke stroke_t
Data structure for stroke gesture data.
#define STROKE_CACHE_SIZE
const stroke_t * get_stroke()
Access array of stroke_t of size MAX_TOUCHES.
void recognize_stroke(const touch_event_t *event)
Recognize stroke gesture.
Data structure for stroke gesture data.
float cache_vy[STROKE_CACHE_SIZE]
float cache_vx[STROKE_CACHE_SIZE]
To use the gesture library, users create touch events and fill in the appropriate fields.