diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2010-08-04 16:47:43 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-05 22:48:38 +0200 |
| commit | 697b5b5c7d2b1c46387061fcbed24cbee51d98ce (patch) | |
| tree | b8e8dbf02453f7c7dc31c691822a088123d21cd8 /src/grail-inserter.h | |
| parent | 642d7ee26f347152a106d48ddad37a8059d36fb1 (diff) | |
Introduce tapping
Simplify some common parts of the recognizer code and add tapping
to the gesture suite.
Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
Diffstat (limited to 'src/grail-inserter.h')
| -rw-r--r-- | src/grail-inserter.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/grail-inserter.h b/src/grail-inserter.h index cca71d2..c76c0e0 100644 --- a/src/grail-inserter.h +++ b/src/grail-inserter.h | |||
| @@ -48,15 +48,6 @@ struct slot_state { | |||
| 48 | struct gebuf buf; | 48 | struct gebuf buf; |
| 49 | }; | 49 | }; |
| 50 | 50 | ||
| 51 | struct gesture_inserter { | ||
| 52 | struct slot_state state[DIM_INSTANCE]; | ||
| 53 | grail_mask_t unused[DIM_INSTANCE_BYTES]; | ||
| 54 | grail_mask_t fresh[DIM_INSTANCE_BYTES]; | ||
| 55 | grail_mask_t used[DIM_INSTANCE_BYTES]; | ||
| 56 | grail_time_t time; | ||
| 57 | int gestureid; | ||
| 58 | }; | ||
| 59 | |||
| 60 | int gin_init(struct grail *ge); | 51 | int gin_init(struct grail *ge); |
| 61 | void gin_destroy(struct grail *ge); | 52 | void gin_destroy(struct grail *ge); |
| 62 | 53 | ||
| @@ -64,14 +55,16 @@ void gin_frame_begin(struct grail *ge, const struct touch_frame *frame); | |||
| 64 | void gin_frame_end(struct grail *ge, grail_mask_t *filtered, int max_filtered, | 55 | void gin_frame_end(struct grail *ge, grail_mask_t *filtered, int max_filtered, |
| 65 | const struct touch_frame *frame); | 56 | const struct touch_frame *frame); |
| 66 | 57 | ||
| 67 | int gin_gesture_begin(struct grail *ge, int type, int priority, | 58 | int gin_gid_begin_select(struct grail *ge, int type, int priority, |
| 68 | const grail_mask_t *span, int nspan); | 59 | const grail_mask_t *span, int nspan); |
| 69 | void gin_gesture_end(struct gesture_inserter *gin, int geslot); | 60 | int gin_gid_begin(struct grail *ge, int type, const struct touch_frame *frame); |
| 70 | void gin_gesture_discard(struct gesture_inserter *gin, int geslot); | 61 | void gin_gid_discard(struct grail *ge, int gid); |
| 71 | void gin_gesture_discard_type(struct gesture_inserter *gin, int type); | ||
| 72 | 62 | ||
| 73 | void gin_gesture_event(struct gesture_inserter *gin, int geslot, | 63 | void gin_gid_event(struct grail *ge, int gid, |
| 74 | float x, float y, int ntouch, | 64 | float x, float y, int ntouch, |
| 75 | const grail_prop_t *prop, int nprop); | 65 | const grail_prop_t *prop, int nprop, |
| 66 | int status); | ||
| 67 | void gin_gid_end(struct grail *ge, int gid, | ||
| 68 | float x, float y, int ntouch); | ||
| 76 | 69 | ||
| 77 | #endif | 70 | #endif |
