Messages in this thread Patch in this message | | | Date | Tue, 8 Aug 2006 02:09:25 +0200 | From | Lennart Poettering <> | Subject | [PATCH] input: A few new KEY_xxx definitions |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |