[PATCH libinput 13/23] tools: Handle pressure, tilt, and distance in event-debug

Stephen Chandler Paul thatslyude at gmail.com
Thu Jun 12 20:28:34 PDT 2014


Signed-off-by: Stephen Chandler Paul <thatslyude at gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 tools/event-debug.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tools/event-debug.c b/tools/event-debug.c
index 13b86a4..9a5ece2 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -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);
-- 
1.8.5.5



More information about the wayland-devel mailing list