diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-09-21 09:49:26 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-09-21 12:56:17 +0200 |
| commit | d0f7b524153d1b54128b049841f880ee78c2c529 (patch) | |
| tree | d6a1fa1f3254f183c77b7222b17c4ac60df658f2 /src/grail-inserter.h | |
| parent | 0e1bf39bd34062f07358dc605c0f03fa5df08356 (diff) | |
Simplify book-keeping of active gestures
The current frame computation returns the event types to filter,
which is less useful than knowing what gesture types are active
in the frame. Add the active gesture types to the frame struct
and simplify usage.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-inserter.h')
| -rw-r--r-- | src/grail-inserter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grail-inserter.h b/src/grail-inserter.h index c5a865a..9baecb7 100644 --- a/src/grail-inserter.h +++ b/src/grail-inserter.h | |||
| @@ -48,6 +48,7 @@ struct slot_state { | |||
| 48 | 48 | ||
| 49 | struct gesture_inserter { | 49 | struct gesture_inserter { |
| 50 | struct slot_state state[DIM_INSTANCE]; | 50 | struct slot_state state[DIM_INSTANCE]; |
| 51 | grail_mask_t types[DIM_GRAIL_TYPE_BYTES]; | ||
| 51 | grail_mask_t unused[DIM_INSTANCE_BYTES]; | 52 | grail_mask_t unused[DIM_INSTANCE_BYTES]; |
| 52 | grail_mask_t fresh[DIM_INSTANCE_BYTES]; | 53 | grail_mask_t fresh[DIM_INSTANCE_BYTES]; |
| 53 | grail_mask_t used[DIM_INSTANCE_BYTES]; | 54 | grail_mask_t used[DIM_INSTANCE_BYTES]; |
| @@ -83,8 +84,7 @@ int gin_init(struct grail *ge); | |||
| 83 | void gin_destroy(struct grail *ge); | 84 | void gin_destroy(struct grail *ge); |
| 84 | 85 | ||
| 85 | void gin_frame_begin(struct grail *ge, const struct touch_frame *frame); | 86 | void gin_frame_begin(struct grail *ge, const struct touch_frame *frame); |
| 86 | void gin_frame_end(struct grail *ge, grail_mask_t *filtered, int max_filtered, | 87 | void gin_frame_end(struct grail *ge, const struct touch_frame *frame); |
| 87 | const struct touch_frame *frame); | ||
| 88 | 88 | ||
| 89 | int gin_gid_begin_select(struct grail *ge, int type, int priority, | 89 | int gin_gid_begin_select(struct grail *ge, int type, int priority, |
| 90 | const grail_mask_t *span, int nspan); | 90 | const grail_mask_t *span, int nspan); |
