From 76f51a7675801acfe8e58c6a21192668d23d3320 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Thu, 19 Aug 2010 22:15:55 +0200 Subject: Add contact information to the property list Add the five first contacts to the property list, and unify the handling of all gesture types in this regard. To avoid duplication, move the scaling of properties closer to the gesture recognizer. Move all gesture event handling code to grail-event.c, simplifying the structure somewhat. Signed-off-by: Henrik Rydberg --- src/grail-inserter.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/grail-inserter.h') diff --git a/src/grail-inserter.h b/src/grail-inserter.h index f8ec5ca..c5a865a 100644 --- a/src/grail-inserter.h +++ b/src/grail-inserter.h @@ -67,6 +67,18 @@ static inline float gin_prop_y(const struct gesture_inserter *gin, float y) return gin->scale_y * y + gin->trans_y; } +int gin_add_contact_props(const struct gesture_inserter *gin, + grail_prop_t *prop, const struct touch_frame *frame); + +int gin_get_clients(struct grail *ge, + struct grail_client_info *info, int maxinfo, + const grail_mask_t* types, int btypes, + const grail_mask_t* span, int bspan, + const struct touch_frame *frame); +void gin_send_event(struct grail *ge, struct slot_state *s, + const struct gesture_event *ev, + const struct touch_frame *frame); + int gin_init(struct grail *ge); void gin_destroy(struct grail *ge); -- cgit v1.2.3