[PATCH libinput 10/24] tools: Handle tablet axes in event-debug

Carlos Garnacho carlosg at gnome.org
Mon Apr 21 10:11:19 PDT 2014


Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
---
 tools/event-debug.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tools/event-debug.c b/tools/event-debug.c
index 3a72bfa..17dafe0 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -310,6 +310,18 @@ print_axis_event(struct libinput_event *ev)
 	case LIBINPUT_POINTER_AXIS_HORIZONTAL_SCROLL:
 		ax = "hscroll";
 		break;
+	case LIBINPUT_POINTER_AXIS_DISTANCE:
+		ax = "distance";
+		break;
+	case LIBINPUT_POINTER_AXIS_PRESSURE:
+		ax = "pressure";
+		break;
+	case LIBINPUT_POINTER_AXIS_VERTICAL_TILT:
+		ax = "ytilt";
+		break;
+	case LIBINPUT_POINTER_AXIS_HORIZONTAL_TILT:
+		ax = "xtilt";
+		break;
 	default:
 		abort();
 	}
-- 
1.9.0



More information about the wayland-devel mailing list