From d07c43f9f19dc0ee38aaf44947cfc396f437490e Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 3 Aug 2010 15:01:50 +0200 Subject: Introduce zoom, rotate and combo gestures Introduce grail_mask bit functions, and add new gestures as separate functions, referring to the same move model. Signed-off-by: Henrik Rydberg --- test/touch.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/touch.c') diff --git a/test/touch.c b/test/touch.c index 1dd9cd4..9b2d38a 100644 --- a/test/touch.c +++ b/test/touch.c @@ -31,20 +31,20 @@ static void tp_event(struct touch_engine *engine, const struct input_event *ev) { - fprintf(stderr, "event %d %d %d\n", ev->type, ev->code, ev->value); + fprintf(stderr, "event %d 0x%x %d\n", ev->type, ev->code, ev->value); } static void tp_sync(struct touch_engine *engine, const struct input_event *syn) { struct touch_frame *frame = &engine->frame; - int slot, i; - fprintf(stderr, "sync %d %lld\n", frame->ntouch, frame->time); - for (slot = frame->slot; slot >= 0; slot = next_slot(frame, slot)) { - struct touch *touch = &frame->touch[slot]; - fprintf(stderr, "touch %d\n", slot); - for (i = 0; i < DIM_TOUCH_PROP; i++) - fprintf(stderr, " %d\n", touch->prop[i]); + int i, j; + fprintf(stderr, "sync %d %lld\n", frame->nactive, frame->time); + for (i = 0; i < frame->nactive; i++) { + struct touch *t = frame->active[i]; + fprintf(stderr, "touch %d %d\n", i, t->slot); + for (j = 0; j < DIM_TOUCH_PROP; j++) + fprintf(stderr, " %d\n", t->prop[j]); } } -- cgit v1.2.3