From fa545e7fb3048198746bf00b7353893d8edc9f6f Mon Sep 17 00:00:00 2001 From: Sakse Dalum Date: Mon, 13 Feb 2017 01:01:31 +0100 Subject: [PATCH libinput 1/1] Added missing button range for pad on CTH-680 --- src/evdev-tablet-pad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/evdev-tablet-pad.c b/src/evdev-tablet-pad.c index bed43b6..6be53b5 100644 --- a/src/evdev-tablet-pad.c +++ b/src/evdev-tablet-pad.c @@ -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; } -- 2.11.1