[PATCH libinput] tools: print wheel axis capability on proximity

Peter Hutterer peter.hutterer at who-t.net
Wed Mar 11 16:47:34 PDT 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Turns out the wheel was set and handled, but the event-debug tool didn't
print it in the capabilities

 tools/event-debug.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/event-debug.c b/tools/event-debug.c
index bf23bfb..b6a24ad 100644
--- a/tools/event-debug.c
+++ b/tools/event-debug.c
@@ -471,6 +471,8 @@ print_proximity_event(struct libinput_event *ev)
 		printf("r");
 	if (libinput_tool_has_axis(tool, LIBINPUT_TABLET_AXIS_SLIDER))
 		printf("s");
+	if (libinput_tool_has_axis(tool, LIBINPUT_TABLET_AXIS_REL_WHEEL))
+		printf("w");
 
 	printf("\tbtn:");
 	if (libinput_tool_has_button(tool, BTN_TOUCH))
-- 
2.1.0



More information about the wayland-devel mailing list