From 7b73269d74ac68a7954cb0bfaa06cbf6e4cec081 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 20 May 2016 14:59:45 +1000 Subject: tools: print the pad capabilities Signed-off-by: Peter Hutterer --- tools/event-debug.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/event-debug.c b/tools/event-debug.c index aa64e7d..a5608d2 100644 --- a/tools/event-debug.c +++ b/tools/event-debug.c @@ -230,6 +230,20 @@ print_device_notify(struct libinput_event *ev) printf(" dwt-off)"); } + if (libinput_device_has_capability(dev, + LIBINPUT_DEVICE_CAP_TABLET_PAD)) { + int nbuttons, nstrips, nrings; + + nbuttons = libinput_device_tablet_pad_get_num_buttons(dev); + nstrips = libinput_device_tablet_pad_get_num_strips(dev); + nrings = libinput_device_tablet_pad_get_num_rings(dev); + + printf(" buttons:%d strips:%d rings:%d", + nbuttons, + nstrips, + nrings); + } + printf("\n"); } -- cgit v1.2.3