diff options
Diffstat (limited to 'test/touch.c')
| -rw-r--r-- | test/touch.c | 16 |
1 files changed, 8 insertions, 8 deletions
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 @@ | |||
| 31 | static void tp_event(struct touch_engine *engine, | 31 | static void tp_event(struct touch_engine *engine, |
| 32 | const struct input_event *ev) | 32 | const struct input_event *ev) |
| 33 | { | 33 | { |
| 34 | fprintf(stderr, "event %d %d %d\n", ev->type, ev->code, ev->value); | 34 | fprintf(stderr, "event %d 0x%x %d\n", ev->type, ev->code, ev->value); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | static void tp_sync(struct touch_engine *engine, | 37 | static void tp_sync(struct touch_engine *engine, |
| 38 | const struct input_event *syn) | 38 | const struct input_event *syn) |
| 39 | { | 39 | { |
| 40 | struct touch_frame *frame = &engine->frame; | 40 | struct touch_frame *frame = &engine->frame; |
| 41 | int slot, i; | 41 | int i, j; |
| 42 | fprintf(stderr, "sync %d %lld\n", frame->ntouch, frame->time); | 42 | fprintf(stderr, "sync %d %lld\n", frame->nactive, frame->time); |
| 43 | for (slot = frame->slot; slot >= 0; slot = next_slot(frame, slot)) { | 43 | for (i = 0; i < frame->nactive; i++) { |
| 44 | struct touch *touch = &frame->touch[slot]; | 44 | struct touch *t = frame->active[i]; |
| 45 | fprintf(stderr, "touch %d\n", slot); | 45 | fprintf(stderr, "touch %d %d\n", i, t->slot); |
| 46 | for (i = 0; i < DIM_TOUCH_PROP; i++) | 46 | for (j = 0; j < DIM_TOUCH_PROP; j++) |
| 47 | fprintf(stderr, " %d\n", touch->prop[i]); | 47 | fprintf(stderr, " %d\n", t->prop[j]); |
| 48 | } | 48 | } |
| 49 | } | 49 | } |
| 50 | 50 | ||
