From 0773735c9d5c05f929e50654e26b26afa256dcf5 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sat, 2 Jun 2018 10:37:01 +0200 Subject: [PATCH] xlat/evdev_keycode.in: remove constants with duplicating values Those are used for describing input device category and not specific button. Reported by clang. * xlat/evdev_keycode.in (BTN_MOUSE, BTN_JOYSTICK, BTN_GAMEPAD, BTN_DIGI, BTN_WHEEL, BTN_TRIGGER_HAPPY): Remove. --- xlat/evdev_keycode.in | 6 ------ 1 file changed, 6 deletions(-) diff --git a/xlat/evdev_keycode.in b/xlat/evdev_keycode.in index a4601861..08fb5d10 100644 --- a/xlat/evdev_keycode.in +++ b/xlat/evdev_keycode.in @@ -282,7 +282,6 @@ BTN_7 0x107 BTN_8 0x108 BTN_9 0x109 -BTN_MOUSE 0x110 BTN_LEFT 0x110 BTN_RIGHT 0x111 BTN_MIDDLE 0x112 @@ -292,7 +291,6 @@ BTN_FORWARD 0x115 BTN_BACK 0x116 BTN_TASK 0x117 -BTN_JOYSTICK 0x120 BTN_TRIGGER 0x120 BTN_THUMB 0x121 BTN_THUMB2 0x122 @@ -307,7 +305,6 @@ BTN_BASE5 0x12a BTN_BASE6 0x12b BTN_DEAD 0x12f -BTN_GAMEPAD 0x130 BTN_SOUTH 0x130 BTN_EAST 0x131 BTN_C 0x132 @@ -324,7 +321,6 @@ BTN_MODE 0x13c BTN_THUMBL 0x13d BTN_THUMBR 0x13e -BTN_DIGI 0x140 BTN_TOOL_PEN 0x140 BTN_TOOL_RUBBER 0x141 BTN_TOOL_BRUSH 0x142 @@ -342,7 +338,6 @@ BTN_TOOL_DOUBLETAP 0x14d BTN_TOOL_TRIPLETAP 0x14e BTN_TOOL_QUADTAP 0x14f -BTN_WHEEL 0x150 BTN_GEAR_DOWN 0x150 BTN_GEAR_UP 0x151 @@ -589,7 +584,6 @@ KEY_DATA 0x277 KEY_ONSCREEN_KEYBOARD 0x278 -BTN_TRIGGER_HAPPY 0x2c0 BTN_TRIGGER_HAPPY1 0x2c0 BTN_TRIGGER_HAPPY2 0x2c1 BTN_TRIGGER_HAPPY3 0x2c2 -- 2.40.0