int disable_recognizer(int recognizer)
Disable a recognizer already in the library.
gesture_recognizer_t remove_recognizer(int recognizer)
Remove a recognizer in the library.
struct touch_event touch_event_t
To use the gesture library, users create touch events and fill in the appropriate fields.
event_type
This is the type of touch event. There are only 3 supported types.
int init_gesturelib()
This function should be called by the user before passing touch events to the library....
int enable_recognizer(int recognizer)
Enable a recognizer already in the library.
touch_event_t latest_touch_events[]
set containing most recent touch within finger group
int add_recognizer(void(*recognizer)(const touch_event_t *), void(*init)(void))
Register a recognizer via a recognition function.
void process_touch_event(touch_event_t *touch_event)
Users call this function with a generated touch event to let the library process it....
enum event_type event_type_t
This is the type of touch event. There are only 3 supported types.
struct gesture_recognizer gesture_recognizer_t
The user may create their own gesture recognizer to add to the library.
The user may create their own gesture recognizer to add to the library.
void(* recognize)(const touch_event_t *)
To use the gesture library, users create touch events and fill in the appropriate fields.