[PATCH] Added zoom key to linux input addon.

Thadeu Lima de Souza Cascardo cascardo at holoscopio.com
Thu Apr 9 10:57:10 PDT 2009


Tested on my Thinkpad R32, which contains such key, dbus-monitor
--system will show that a ButtonPressed signal is now generated when
it wasn't before this change.
---
 hald/linux/addons/addon-input.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/hald/linux/addons/addon-input.c b/hald/linux/addons/addon-input.c
index f6935d3..754a855 100644
--- a/hald/linux/addons/addon-input.c
+++ b/hald/linux/addons/addon-input.c
@@ -175,7 +175,11 @@ static char *key_name[KEY_MAX + 1] = {
 #ifndef KEY_WLAN
 #define KEY_WLAN 238
 #endif
-	[KEY_WLAN] = "wlan"
+	[KEY_WLAN] = "wlan",
+#ifndef KEY_ZOOM
+#define KEY_ZOOM 0x174
+#endif
+	[KEY_ZOOM] = "zoom"
 };
 
 
-- 
1.6.2.1



More information about the hal mailing list