From d07c43f9f19dc0ee38aaf44947cfc396f437490e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 3 Aug 2010 15:01:50 +0200 Subject: Introduce zoom, rotate and combo gestures Introduce grail_mask bit functions, and add new gestures as separate functions, referring to the same move model. Signed-off-by: Henrik Rydberg --- src/grail-recognizer.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/grail-recognizer.h') diff --git a/src/grail-recognizer.h b/src/grail-recognizer.h index 8c47162..247687d 100644 --- a/src/grail-recognizer.h +++ b/src/grail-recognizer.h @@ -25,9 +25,18 @@ #ifndef _GRAIL_RECOGNIZER_H #define _GRAIL_RECOGNIZER_H -#include "grail-inserter.h" +#include "grail-gestures.h" -int gru_init(struct grail *ge); +struct gesture_recognizer { + struct touch_frame frame; + struct move_model move; + struct scroll_model scroll; + struct zoom_model zoom; + struct rotate_model rotate; + struct combo_model combo; +}; + +int gru_init(struct grail *ge, const struct touch_dev_caps *caps); void gru_recognize(struct grail *ge, const struct touch_frame *frame); void gru_destroy(struct grail *ge); -- cgit v1.2.3