mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 21:40:36 +01:00
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:
parent
4e4ff21e31
commit
6d0fceb225
1 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue