summaryrefslogtreecommitdiffstats
path: root/include/linux/keyboard.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2006-04-02 00:10:28 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-02 00:10:28 -0500
commitb9ec4e109d7a342e83e1210e05797222e36555c3 (patch)
tree47ff5cb19c3b43f9907006e7b491df547f29b71e /include/linux/keyboard.h
parent53a2670cd9611cf7c3b3bf9875b0b4041160fa60 (diff)
downloadlinux-stable-b9ec4e109d7a342e83e1210e05797222e36555c3.tar.gz
linux-stable-b9ec4e109d7a342e83e1210e05797222e36555c3.tar.bz2
linux-stable-b9ec4e109d7a342e83e1210e05797222e36555c3.zip
Input: add support for Braille devices
- Add KEY_BRL_* input keys and K_BRL_* keycodes; - Add emulation of how braille keyboards usually combine braille dots to the console keyboard driver; - Add handling of unicode U+28xy diacritics. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/keyboard.h')
-rw-r--r--include/linux/keyboard.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index 08488042d74a..de76843bbe8a 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -44,6 +44,7 @@ extern unsigned short plain_map[NR_KEYS];
#define KT_ASCII 9
#define KT_LOCK 10
#define KT_SLOCK 12
+#define KT_BRL 14
#define K(t,v) (((t)<<8)|(v))
#define KTYP(x) ((x) >> 8)
@@ -427,5 +428,17 @@ extern unsigned short plain_map[NR_KEYS];
#define NR_LOCK 8
+#define K_BRL_BLANK K(KT_BRL, 0)
+#define K_BRL_DOT1 K(KT_BRL, 1)
+#define K_BRL_DOT2 K(KT_BRL, 2)
+#define K_BRL_DOT3 K(KT_BRL, 3)
+#define K_BRL_DOT4 K(KT_BRL, 4)
+#define K_BRL_DOT5 K(KT_BRL, 5)
+#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 NR_BRL 9
+
#define MAX_DIACR 256
#endif