diff --git a/src/evdev.c b/src/evdev.c index 48e5470d..e9235d9b 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -524,7 +524,7 @@ evdev_handle_device(struct evdev_device *device) break; } } - for (i = BTN_MISC; i < KEY_OK; i++) { + for (i = BTN_MISC; i < BTN_JOYSTICK; i++) { if (TEST_BIT(key_bits, i)) { device->caps |= EVDEV_BUTTON; break;