tools: Handle pressure, tilt, and distance in event-debug

Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
Stephen Chandler Paul 2014-06-06 20:33:47 -04:00
parent 4e4ff21e31
commit 6d0fceb225

View file

@ -364,6 +364,18 @@ print_tablet_axis_event(struct libinput_event *ev)
case LIBINPUT_TABLET_AXIS_Y:
ax = "y";
break;
case LIBINPUT_TABLET_AXIS_DISTANCE:
ax = "distance";
break;
case LIBINPUT_TABLET_AXIS_PRESSURE:
ax = "pressure";
break;
case LIBINPUT_TABLET_AXIS_TILT_VERTICAL:
ax = "ytilt";
break;
case LIBINPUT_TABLET_AXIS_TILT_HORIZONTAL:
ax = "xtilt";
break;
}
val = libinput_event_tablet_get_axis_value(t, a);
printf("\t%s = %.2f\n", ax, val);