diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-01-02 11:00:52 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-01-02 12:39:07 +0100 |
| commit | c0666a895e7fe8e488332263fd106ced0ed7cab7 (patch) | |
| tree | fca88fbee4aaed6e1eed050a749ce6246a7f1966 /src/grail-recognizer.c | |
| parent | 1e07054fbeab6e90f104c279d3246097dd838a17 (diff) | |
Replace touch logic with utouch frame engine
The original grail uses an internal touch framework and exports some
touch information as extended attributes to gesture events. This was
never quite the intention, but rather to expose gestures and touches
on a similar footing, such that grail can be input agnostic. This
patch starts off by replacing the internal touch framework with the
utouch-frame engine.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-recognizer.c')
| -rw-r--r-- | src/grail-recognizer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/grail-recognizer.c b/src/grail-recognizer.c index 932f28a..fb0ae85 100644 --- a/src/grail-recognizer.c +++ b/src/grail-recognizer.c | |||
| @@ -42,7 +42,7 @@ void gru_destroy(struct grail *ge) | |||
| 42 | ge->gru = NULL; | 42 | ge->gru = NULL; |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void gru_recognize(struct grail *ge, const struct touch_frame *frame) | 45 | void gru_recognize(struct grail *ge, const struct utouch_frame *frame) |
| 46 | { | 46 | { |
| 47 | if (!ge->gin || !ge->gru) | 47 | if (!ge->gin || !ge->gru) |
| 48 | return; | 48 | return; |
| @@ -54,5 +54,4 @@ void gru_recognize(struct grail *ge, const struct touch_frame *frame) | |||
| 54 | gru_winpinch(ge, frame); | 54 | gru_winpinch(ge, frame); |
| 55 | gru_winrotate(ge, frame); | 55 | gru_winrotate(ge, frame); |
| 56 | gru_tapping(ge, frame); | 56 | gru_tapping(ge, frame); |
| 57 | ge->gru->frame = *frame; | ||
| 58 | } | 57 | } |
