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 <[EMAIL PROTECTED]>
---
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

Reply via email to