[Resend: PATCH libinput 2/2] tools: Show gesture/switch capabilities in list-devices output
Stefan Brüns
stefan.bruens at rwth-aachen.de
Sat Nov 4 17:37:28 UTC 2017
Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
---
tools/libinput-list-devices.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/libinput-list-devices.c b/tools/libinput-list-devices.c
index 376a3c9..aa225ca 100644
--- a/tools/libinput-list-devices.c
+++ b/tools/libinput-list-devices.c
@@ -314,6 +314,12 @@ print_device_notify(struct libinput_event *ev)
if (libinput_device_has_capability(dev,
LIBINPUT_DEVICE_CAP_TABLET_PAD))
printf("tablet-pad");
+ if (libinput_device_has_capability(dev,
+ LIBINPUT_DEVICE_CAP_GESTURE))
+ printf("gesture");
+ if (libinput_device_has_capability(dev,
+ LIBINPUT_DEVICE_CAP_SWITCH))
+ printf("switch");
printf("\n");
printf("Tap-to-click: %s\n", tap_default(dev));
--
2.14.3
More information about the wayland-devel
mailing list