From: Carlos Corbacho <cathectic@gmail.com>
To: linux-input@atrey.karlin.mff.cuni.cz
Subject: [PATCH] input: Add wireless and bluetooth keycodes
Date: Thu, 3 May 2007 12:15:16 +0100 [thread overview]
Message-ID: <200705031215.16971.cathectic@gmail.com> (raw)
Add wireless and bluetooth keycodes. Also, add keycodes for these
keys having a separate off state (This is true on some machines,
such as many Acer laptops).
Signed-off-by: Carlos Corbacho <cathectic@gmail.com>
---
There don't appear to be any keycodes defined for wireless and bluetooth.
On my laptop (Acer Aspire 5021) these buttons generate scancodes, rather
than being hardware controlled or generating an ACPI hotkey event, so it
would be nice to have some standard keycodes to map them to.
Plus, to cause more bother, the buttons on my laptop also generate a
different scancode depending on whether the device in question is enabled
or disabled (hence the _OFF entries). This is also true for an awful lot of
other Acer laptops.
--- linux-2.6.21/include/linux/input.h.orig 2007-05-03 11:48:15.000000000 +0100
+++ linux-2.6.21/include/linux/input.h 2007-05-03 11:48:21.000000000 +0100
@@ -506,6 +506,10 @@
#define KEY_VOICEMAIL 0x1ac
#define KEY_ADDRESSBOOK 0x1ad
#define KEY_MESSENGER 0x1ae
+#define KEY_WIRELESS 0x1b0
+#define KEY_WIRELESS_OFF 0x1b1
+#define KEY_BLUETOOTH 0x1b2
+#define KEY_BLUETOOTH_OFF 0x1b3
#define KEY_DEL_EOL 0x1c0
#define KEY_DEL_EOS 0x1c1
next reply other threads:[~2007-05-03 11:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-03 11:15 Carlos Corbacho [this message]
2007-05-03 11:58 ` [PATCH] input: Add wireless and bluetooth keycodes Dmitry Torokhov
2007-05-03 12:18 ` Carlos Corbacho
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=200705031215.16971.cathectic@gmail.com \
--to=cathectic@gmail.com \
--cc=linux-input@atrey.karlin.mff.cuni.cz \
/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;
as well as URLs for NNTP newsgroup(s).