From: Florian Festi <ffesti@redhat.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] input: Extend raw mode to work up to keycode 0xFF
Date: Mon, 11 Dec 2006 19:01:56 +0100 [thread overview]
Message-ID: <457D9D14.5090006@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
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
[-- Attachment #2: rawmodeemulation.diff --]
[-- Type: text/x-patch, Size: 714 bytes --]
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);
next reply other threads:[~2006-12-11 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-11 18:01 Florian Festi [this message]
2006-12-12 15:54 ` [PATCH] input: Extend raw mode to work up to keycode 0xFF Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=457D9D14.5090006@redhat.com \
--to=ffesti@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox