Input: add more Braille keycodes
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 5 Sep 2007 03:16:04 +0000 (23:16 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 5 Sep 2007 03:16:04 +0000 (23:16 -0400)
Some braille keyboards have 10 dots, so extend the Input braille keys
definitions.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h
include/linux/keyboard.h

index e02c6a66b2ba74fecdb015b202933541dc3f5257..17df5a7331c760ce8fe9d8863453f6480076ae55 100644 (file)
@@ -552,6 +552,8 @@ struct input_absinfo {
 #define KEY_BRL_DOT6           0x1f6
 #define KEY_BRL_DOT7           0x1f7
 #define KEY_BRL_DOT8           0x1f8
+#define KEY_BRL_DOT9           0x1f9
+#define KEY_BRL_DOT10          0x1fa
 
 /* We avoid low common keys in module aliases so they don't get huge. */
 #define KEY_MIN_INTERESTING    KEY_MUTE
index de76843bbe8a8839a18d4687f60d9187e5aff238..7ddbc30aa8e706d5561ca2c5c009140bdcb29d7d 100644 (file)
@@ -437,8 +437,10 @@ extern unsigned short plain_map[NR_KEYS];
 #define K_BRL_DOT6      K(KT_BRL, 6)
 #define K_BRL_DOT7      K(KT_BRL, 7)
 #define K_BRL_DOT8      K(KT_BRL, 8)
+#define K_BRL_DOT9      K(KT_BRL, 9)
+#define K_BRL_DOT10     K(KT_BRL, 10)
 
-#define NR_BRL         9
+#define NR_BRL         11
 
 #define MAX_DIACR      256
 #endif