Gesture Library
multistroke.c File Reference
#include "multistroke.h"
#include "math.h"
#include "stroke.h"
#include "utils.h"

Go to the source code of this file.

Functions

void init_multistroke ()
 Initialize multistroke data structures. More...
 
void recognize_multistroke (const touch_event_t *event)
 Recognize multistroke gesture. This gesture allows the number of fingers to change. More...
 
const multistroke_tget_multistroke ()
 Access array of multistroke_t of size MAX_TOUCHES. More...
 

Variables

multistroke_t multistroke_d [MAX_TOUCHES]
 

Function Documentation

◆ get_multistroke()

const multistroke_t* get_multistroke ( )

Access array of multistroke_t of size MAX_TOUCHES.

Returns
Pointer to first element of array of multistroke_t of size MAX_TOUCHES

Definition at line 53 of file multistroke.c.

◆ init_multistroke()

void init_multistroke ( )

Initialize multistroke data structures.

Definition at line 9 of file multistroke.c.

◆ recognize_multistroke()

void recognize_multistroke ( const touch_event_t event)

Recognize multistroke gesture. This gesture allows the number of fingers to change.

Parameters
eventtouch event to recognize

Definition at line 37 of file multistroke.c.

Variable Documentation

◆ multistroke_d

multistroke_t multistroke_d[MAX_TOUCHES]

Definition at line 7 of file multistroke.c.