From: Lennart Poettering <mzxreary@0pointer.de>
To: dtor_core@ameritech.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] input: A few new KEY_xxx definitions
Date: Tue, 8 Aug 2006 02:09:25 +0200 [thread overview]
Message-ID: <20060808000925.GA6220@curacao> (raw)
From: Lennart Poettering <mzxreary@0pointer.de>
The attached patch adds four new KEY_xxx definitions to linux/input.h.
KEY_BLUETOOTH, KEY_WLAN:
Some laptops have seperate "rfkill"
buttons for disabling/enabling Bluetooth and WLAN.
KEY_POWERPLUG, KEY_POWERUNPLUG:
Some laptops generate a fake key event when the power cord is
plugged or unplugged. (Notably MSI laptops, such as S270)
Applies to all recent 2.6 kernels.
Please merge,
Lennart
Signed-off-by: Lennart Poettering <mzxreary@0pointer.de>
---
--- include/linux/input.h.orig 2006-08-08 01:25:52.000000000 +0200
+++ include/linux/input.h 2006-08-08 01:43:13.000000000 +0200
@@ -347,8 +347,14 @@ struct input_absinfo {
#define KEY_BATTERY 236
+#define KEY_BLUETOOTH 237
+#define KEY_WLAN 238
+
#define KEY_UNKNOWN 240
+#define KEY_POWERPLUG 239
+#define KEY_POWERUNPLUG 241
+
#define BTN_MISC 0x100
#define BTN_0 0x100
#define BTN_1 0x101
next reply other threads:[~2006-08-08 0:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 0:09 Lennart Poettering [this message]
2006-08-08 2:19 ` [PATCH] input: A few new KEY_xxx definitions Dmitry Torokhov
2006-08-08 10:07 ` Lennart Poettering
2006-09-20 13:22 ` 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=20060808000925.GA6220@curacao \
--to=mzxreary@0pointer.de \
--cc=dtor_core@ameritech.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.