Commit 4ed64e29 authored by Peter Hutterer's avatar Peter Hutterer

Fix valuator printf output in test-xi2

Avoid mixing event flags into the valuator output
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 904a32d9
......@@ -149,7 +149,6 @@ static void print_rawevent(XIRawEvent *event)
printf(" device: %d (%d)\n", event->deviceid, event->sourceid);
printf(" detail: %d\n", event->detail);
printf(" valuators:\n");
#if HAVE_XI21
switch(event->evtype) {
case XI_RawButtonPress:
......@@ -160,6 +159,7 @@ static void print_rawevent(XIRawEvent *event)
}
#endif
printf(" valuators:\n");
val = event->valuators.values;
raw_val = event->raw_values;
for (i = 0; i < event->valuators.mask_len * 8; i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment