From d0f7b524153d1b54128b049841f880ee78c2c529 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 21 Sep 2010 09:49:26 +0200 Subject: 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 --- src/grail-inserter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/grail-inserter.h') 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 { struct gesture_inserter { struct slot_state state[DIM_INSTANCE]; + grail_mask_t types[DIM_GRAIL_TYPE_BYTES]; grail_mask_t unused[DIM_INSTANCE_BYTES]; grail_mask_t fresh[DIM_INSTANCE_BYTES]; grail_mask_t used[DIM_INSTANCE_BYTES]; @@ -83,8 +84,7 @@ int gin_init(struct grail *ge); void gin_destroy(struct grail *ge); void gin_frame_begin(struct grail *ge, const struct touch_frame *frame); -void gin_frame_end(struct grail *ge, grail_mask_t *filtered, int max_filtered, - const struct touch_frame *frame); +void gin_frame_end(struct grail *ge, const struct touch_frame *frame); int gin_gid_begin_select(struct grail *ge, int type, int priority, const grail_mask_t *span, int nspan); -- cgit v1.2.3