summaryrefslogtreecommitdiff
path: root/test/touch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@bitmath.org>2010-08-04 16:47:43 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-05 22:48:38 +0200
commit697b5b5c7d2b1c46387061fcbed24cbee51d98ce (patch)
treeb8e8dbf02453f7c7dc31c691822a088123d21cd8 /test/touch.c
parent642d7ee26f347152a106d48ddad37a8059d36fb1 (diff)
Introduce tapping
Simplify some common parts of the recognizer code and add tapping to the gesture suite. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
Diffstat (limited to 'test/touch.c')
-rw-r--r--test/touch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/touch.c b/test/touch.c
index 9b2d38a..8893c0d 100644
--- a/test/touch.c
+++ b/test/touch.c
@@ -39,13 +39,14 @@ static void tp_sync(struct touch_engine *engine,
39{ 39{
40 struct touch_frame *frame = &engine->frame; 40 struct touch_frame *frame = &engine->frame;
41 int i, j; 41 int i, j;
42 fprintf(stderr, "sync %d %lld\n", frame->nactive, frame->time);
43 for (i = 0; i < frame->nactive; i++) { 42 for (i = 0; i < frame->nactive; i++) {
44 struct touch *t = frame->active[i]; 43 struct touch *t = frame->active[i];
45 fprintf(stderr, "touch %d %d\n", i, t->slot); 44 fprintf(stderr, "touch %d %d\n", i, t->slot);
46 for (j = 0; j < DIM_TOUCH_PROP; j++) 45 for (j = 0; j < DIM_TOUCH_PROP; j++)
47 fprintf(stderr, " %d\n", t->prop[j]); 46 fprintf(stderr, " %d\n", t->prop[j]);
48 } 47 }
48 fprintf(stderr, "sync %d %lld %d %d\n",
49 frame->nactive, frame->time, frame->ncreate, frame->ndestroy);
49} 50}
50 51
51static void loop_device(struct touch_dev *dev, int fd) 52static void loop_device(struct touch_dev *dev, int fd)