evdev: Use correct fallback value for KEY_LIGHTS_TOGGLE
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 2 Jun 2014 21:11:30 +0000 (23:11 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 2 Jun 2014 21:23:13 +0000 (23:23 +0200)
The kernel defines KEY_LIGHTS_TOGGLE as 0x21e, not 0x160 (which is KEY_OK).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
src/evdev.c

index ed5749e..3053764 100644 (file)
@@ -42,7 +42,7 @@
 #define DEFAULT_AXIS_STEP_DISTANCE li_fixed_from_int(10)
 
 #ifndef KEY_LIGHTS_TOGGLE
-#define KEY_LIGHTS_TOGGLE 0x160
+#define KEY_LIGHTS_TOGGLE 0x21e
 #endif
 
 void