[PATCH] input: Extend raw mode to work up to keycode 0xFF

From: Florian Festi
Date: Mon Dec 11 2006 - 13:02:25 EST


Hi, [please CC me, as I am not subscribed]

currently keycodes above 240 are ignored if the tty is in raw mode. To make the key codes from 241 to 255 usable for programs in raw mode (like X11) the still unused scancodes were added into that range. Right know these scancodes are used in arbitrary order due the lack of a better alternative. Comments on a better way of using them are welcome.

This extension is needed for some keycodes I submited in a previous patch.

Florian diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index 7a6c1c0..33a1aef 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -1043,7 +1043,8 @@ static const unsigned short x86_keycodes
264,117,271,374,379,265,266, 93, 94, 95, 85,259,375,260, 90,116,
377,109,111,277,278,282,283,295,296,297,299,300,301,293,303,307,
308,310,313,314,315,317,318,319,320,357,322,323,324,325,276,330,
- 332,340,365,342,343,344,345,346,356,270,341,368,369,370,371,372 };
+ 332,340,365,342,343,344,345,346,356,270,341,368,369,370,371,372,
+ 96, 97, 98,110,122,124,127,256,273,298,311,366,378,380,382,383 };

#ifdef CONFIG_MAC_EMUMOUSEBTN
extern int mac_hid_mouse_emulate_buttons(int, int, int);