diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-02-24 23:38:01 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-14 12:55:19 +0100 |
| commit | f92c18c344c04a2501e01ae402441a92883da382 (patch) | |
| tree | fec506ca8784002083babe767505930be2a8d25a /src/grail-recognizer.h | |
| parent | 609e367b3ee2b587f698b65393aa22357f453add (diff) | |
Introduce gesture timeouts
The timeout of a gesture is integral to the gesture type.
This patch introduces timeout per gesture type, potentially
enabling more control over gesture timing aspects. The timeout
logic replaces the recently added recognition state.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-recognizer.h')
| -rw-r--r-- | src/grail-recognizer.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/grail-recognizer.h b/src/grail-recognizer.h index b08ff34..56e5b8d 100644 --- a/src/grail-recognizer.h +++ b/src/grail-recognizer.h | |||
| @@ -25,12 +25,6 @@ | |||
| 25 | 25 | ||
| 26 | #include "grail-gestures.h" | 26 | #include "grail-gestures.h" |
| 27 | 27 | ||
| 28 | enum recognition_state { | ||
| 29 | RECOGNIZING, | ||
| 30 | RECOGNIZED, | ||
| 31 | UNRECOGNIZED | ||
| 32 | }; | ||
| 33 | |||
| 34 | struct gesture_recognizer { | 28 | struct gesture_recognizer { |
| 35 | struct move_model move; | 29 | struct move_model move; |
| 36 | struct combo_model drag; | 30 | struct combo_model drag; |
| @@ -40,8 +34,6 @@ struct gesture_recognizer { | |||
| 40 | struct combo_model winpinch; | 34 | struct combo_model winpinch; |
| 41 | struct combo_model winrotate; | 35 | struct combo_model winrotate; |
| 42 | struct tapping_model tapping; | 36 | struct tapping_model tapping; |
| 43 | utouch_frame_time_t start_time; | ||
| 44 | enum recognition_state state; | ||
| 45 | }; | 37 | }; |
| 46 | 38 | ||
| 47 | int gru_init(struct grail *ge); | 39 | int gru_init(struct grail *ge); |
