[PATCH] Add new key events to addon-keyboard.c
Matthew Garrett
mjg59 at srcf.ucam.org
Wed Jan 31 00:16:24 PST 2007
Hi,
This patch adds support for three new hotkeys - battery, bluetooth and
wireless. battery is used by g-p-m to display a battery info popup, and
I'm planning to add wireless hotkey support to network-manager.
Signed-off-by: Matthew Garrett <mjg59 at srcf.ucam.org>
---
diff --git a/hald/linux/addons/addon-keyboard.c b/hald/linux/addons/addon-keyboard.c
index 13f4fd5..644da4f 100644
--- a/hald/linux/addons/addon-keyboard.c
+++ b/hald/linux/addons/addon-keyboard.c
@@ -153,7 +153,19 @@ static char *key_name[KEY_MAX + 1] = {
#ifndef KEY_KBDILLUMUP
#define KEY_KBDILLUMUP 230
#endif
- [KEY_KBDILLUMUP] = "kbd-illum-up"
+ [KEY_KBDILLUMUP] = "kbd-illum-up",
+#ifndef KEY_BATTERY
+#define KEY_BATTERY 236
+#endif
+ [KEY_BATTERY] = "battery",
+#ifndef KEY_BLUETOOTH
+#define KEY_BLUETOOTH 237
+#endif
+ [KEY_BLUETOOTH] = "bluetooth",
+#ifndef KEY_WLAN
+#define KEY_WLAN 238
+#endif
+ [KEY_WLAN] = "wlan"
};
static void
--
Matthew Garrett | mjg59 at srcf.ucam.org
More information about the hal
mailing list