From da425afd6199995ac7b6f23bf8744a435cc02e23 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 10 Aug 2010 12:45:52 +0100 Subject: Add property declarations to grail-types Also add accumulated values for delta and velocity properties. Signed-off-by: Henrik Rydberg --- src/grail-inserter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/grail-inserter.c') diff --git a/src/grail-inserter.c b/src/grail-inserter.c index 6ba9662..d982808 100644 --- a/src/grail-inserter.c +++ b/src/grail-inserter.c @@ -262,7 +262,8 @@ void gin_gid_event(struct grail *ge, int gid, } void gin_gid_end(struct grail *ge, int gid, - float x, float y, int ntouch) + float x, float y, int ntouch, + const grail_prop_t *prop, int nprop) { struct gesture_inserter *gin = ge->gin; struct gesture_event ev; @@ -274,10 +275,11 @@ void gin_gid_end(struct grail *ge, int gid, if (s->status != GRAIL_STATUS_BEGIN) { ev.status = GRAIL_STATUS_END; ev.ntouch = ntouch; - ev.nprop = 0; + ev.nprop = nprop; ev.time = gin->time; ev.pos.x = x; ev.pos.y = y; + memcpy(ev.prop, prop, nprop * sizeof(grail_prop_t)); gebuf_put(&s->buf, &ev); } s->status = GRAIL_STATUS_END; -- cgit v1.2.3