mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-06 20:00:13 +01:00
Added missing button range for pad on CTH-680
This device has BTN_LEFT, BTN_RIGHT, BTN_FORWARD and BTN_BACK, add the missing range to the pad init function. https://bugs.freedesktop.org/show_bug.cgi?id=99785 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
6b561d4505
commit
25f9c1381b
1 changed files with 5 additions and 0 deletions
|
|
@ -542,6 +542,11 @@ pad_init_buttons(struct pad_dispatch *pad,
|
|||
pad->button_map[code] = map++;
|
||||
}
|
||||
|
||||
for (code = BTN_LEFT; code < BTN_LEFT + 7; code++) {
|
||||
if (libevdev_has_event_code(device->evdev, EV_KEY, code))
|
||||
pad->button_map[code] = map++;
|
||||
}
|
||||
|
||||
pad->nbuttons = map;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue