input: Extend raw mode to work up to keycode 0xFF
PATCH 1/1 input: Extend raw mode to work up to keycode 0xFF
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
drivers/char/keyboard.c +2 -1
@@ -1043,7 +1043,8 @@ static const unsigned short x86_keycodes264 ,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 );
Quoted 7 lines · Florian Festi
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.
Values equal or greater 0xf0 (240) have special meaning in PS/2 protocol (aka rawmode) and therefore shall not be used for transmitting keycodes. It looksl ike we have 0x1a0 range open (although you will have to use evdev driver to get these keycodes, which is not a bad thing).
Signature · 1 line
Dmitry