summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/evdev-tablet-pad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev-tablet-pad.c b/src/evdev-tablet-pad.c
index 53416573..ff826e7e 100644
--- a/src/evdev-tablet-pad.c
+++ b/src/evdev-tablet-pad.c
@@ -469,12 +469,12 @@ pad_init_buttons(struct pad_dispatch *pad,
pad->button_map[code] = map++;
}
- for (code = BTN_A; code < BTN_A + 6; code++) {
+ for (code = BTN_BASE; code < BTN_BASE + 2; code++) {
if (libevdev_has_event_code(device->evdev, EV_KEY, code))
pad->button_map[code] = map++;
}
- for (code = BTN_BASE; code < BTN_BASE + 2; code++) {
+ for (code = BTN_A; code < BTN_A + 6; code++) {
if (libevdev_has_event_code(device->evdev, EV_KEY, code))
pad->button_map[code] = map++;
}