hal/hald/linux2/addons addon-keyboard.c,1.5,1.6

Sjoerd Simons sjoerd at kemper.freedesktop.org
Mon Mar 6 10:29:29 PST 2006


Update of /cvs/hal/hal/hald/linux2/addons
In directory kemper:/tmp/cvs-serv17957/hald/linux2/addons

Modified Files:
	addon-keyboard.c 
Log Message:
2006-03-06  Sjoerd Simons <sjoerd at luon.net>

   * hald/linux2/addons/addon-keyboard.c:  Also recognize mute,
     volume up/down buttons, switchvideo mode button and keyboard illumination
     toggle/down/up buttons.



Index: addon-keyboard.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/addons/addon-keyboard.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- addon-keyboard.c	3 Mar 2006 17:33:26 -0000	1.5
+++ addon-keyboard.c	6 Mar 2006 18:29:27 -0000	1.6
@@ -138,7 +138,26 @@
 	[KEY_BRIGHTNESSDOWN] = "brightness-down",
 	[KEY_BRIGHTNESSUP] = "brightness-up",
 	[KEY_MEDIA] = "media",
-	[KEY_POWER] = "power"
+	[KEY_POWER] = "power",
+	[KEY_MUTE] = "mute",
+	[KEY_VOLUMEDOWN] = "volume-down",
+	[KEY_VOLUMEUP] = "volume-up",
+#ifndef KEY_SWITCHVIDEOMODE
+#define KEY_SWITCHVIDEOMODE	227
+#endif
+	[KEY_SWITCHVIDEOMODE] = "switch-videomode",
+#ifndef KEY_KBDILLUMTOGGLE
+#define KEY_KBDILLUMTOGGLE	228
+#endif
+	[KEY_KBDILLUMTOGGLE] = "kbd-illum-toggle",
+#ifndef KEY_KBDILLUMDOWN
+#define KEY_KBDILLUMDOWN	229
+#endif
+	[KEY_KBDILLUMDOWN] = "kbd-illum-down",
+#ifndef KEY_KBDILLUMUP
+#define KEY_KBDILLUMUP		230
+#endif
+	[KEY_KBDILLUMUP] = "kbd-illum-up"
 };
 
 static void




More information about the hal-commit mailing list