Skip to content

Commit

Permalink
Input: add more Braille keycodes
Browse files Browse the repository at this point in the history
Some braille keyboards have 10 dots, so extend the Input braille keys
definitions.

Signed-off-by: Samuel Thibault <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
sthibaul authored and dtor committed Sep 5, 2007
1 parent b3e2c70 commit 9e3d3d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion include/linux/keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e3d3d0

Please sign in to comment.