summaryrefslogtreecommitdiff
path: root/src/grail-recognizer.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2010-08-03 15:01:50 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-05 22:48:38 +0200
commitd07c43f9f19dc0ee38aaf44947cfc396f437490e (patch)
tree2f9af561594a1de5553ba85b69b50bee421d5507 /src/grail-recognizer.h
parent342a43e7b2ceec1dd200bffa24b052fec33f5bdc (diff)
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 <rydberg@bitmath.org>
Diffstat (limited to 'src/grail-recognizer.h')
-rw-r--r--src/grail-recognizer.h13
1 files changed, 11 insertions, 2 deletions
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 @@
25#ifndef _GRAIL_RECOGNIZER_H 25#ifndef _GRAIL_RECOGNIZER_H
26#define _GRAIL_RECOGNIZER_H 26#define _GRAIL_RECOGNIZER_H
27 27
28#include "grail-inserter.h" 28#include "grail-gestures.h"
29 29
30int gru_init(struct grail *ge); 30struct gesture_recognizer {
31 struct touch_frame frame;
32 struct move_model move;
33 struct scroll_model scroll;
34 struct zoom_model zoom;
35 struct rotate_model rotate;
36 struct combo_model combo;
37};
38
39int gru_init(struct grail *ge, const struct touch_dev_caps *caps);
31void gru_recognize(struct grail *ge, const struct touch_frame *frame); 40void gru_recognize(struct grail *ge, const struct touch_frame *frame);
32void gru_destroy(struct grail *ge); 41void gru_destroy(struct grail *ge);
33 42