mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 10:00:27 +01:00
tools: print the pad capabilities
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
40e3fe2384
commit
7b73269d74
1 changed files with 14 additions and 0 deletions
|
|
@ -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");
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue