mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 03:08:01 +02:00
tools: add rel dial support to libinput-list-devices
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1068>
This commit is contained in:
parent
b34010bf4e
commit
f5cc45e409
1 changed files with 3 additions and 1 deletions
|
|
@ -259,12 +259,13 @@ rotation_default(struct libinput_device *device)
|
||||||
static void
|
static void
|
||||||
print_pad_info(struct libinput_device *device)
|
print_pad_info(struct libinput_device *device)
|
||||||
{
|
{
|
||||||
int nbuttons, nrings, nstrips, ngroups, nmodes;
|
int nbuttons, nrings, nstrips, ndials, ngroups, nmodes;
|
||||||
struct libinput_tablet_pad_mode_group *group;
|
struct libinput_tablet_pad_mode_group *group;
|
||||||
|
|
||||||
nbuttons = libinput_device_tablet_pad_get_num_buttons(device);
|
nbuttons = libinput_device_tablet_pad_get_num_buttons(device);
|
||||||
nrings = libinput_device_tablet_pad_get_num_rings(device);
|
nrings = libinput_device_tablet_pad_get_num_rings(device);
|
||||||
nstrips = libinput_device_tablet_pad_get_num_strips(device);
|
nstrips = libinput_device_tablet_pad_get_num_strips(device);
|
||||||
|
ndials = libinput_device_tablet_pad_get_num_dials(device);
|
||||||
ngroups = libinput_device_tablet_pad_get_num_mode_groups(device);
|
ngroups = libinput_device_tablet_pad_get_num_mode_groups(device);
|
||||||
|
|
||||||
group = libinput_device_tablet_pad_get_mode_group(device, 0);
|
group = libinput_device_tablet_pad_get_mode_group(device, 0);
|
||||||
|
|
@ -273,6 +274,7 @@ print_pad_info(struct libinput_device *device)
|
||||||
printf("Pad:\n");
|
printf("Pad:\n");
|
||||||
printf(" Rings: %d\n", nrings);
|
printf(" Rings: %d\n", nrings);
|
||||||
printf(" Strips: %d\n", nstrips);
|
printf(" Strips: %d\n", nstrips);
|
||||||
|
printf(" Dials: %d\n", ndials);
|
||||||
printf(" Buttons: %d\n", nbuttons);
|
printf(" Buttons: %d\n", nbuttons);
|
||||||
printf(" Mode groups: %d (%d modes)\n", ngroups, nmodes);
|
printf(" Mode groups: %d (%d modes)\n", ngroups, nmodes);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue