r1736

dslinux_cayenne at dslinux.in-berlin.de dslinux_cayenne at dslinux.in-berlin.de
Wed Apr 18 23:41:32 CEST 2007


Author: cayenne
Date: 2007-04-18 23:41:26 +0200 (Wed, 18 Apr 2007)
New Revision: 1736

Log:
add kernel config option to swap L and R buttons

Modified: trunk/linux-2.6.x/arch/arm/mach-nds/Kconfig
===================================================================
--- trunk/linux-2.6.x/arch/arm/mach-nds/Kconfig	2007-04-18 12:58:07 UTC (rev 1735)
+++ trunk/linux-2.6.x/arch/arm/mach-nds/Kconfig	2007-04-18 21:41:26 UTC (rev 1736)
@@ -67,4 +67,13 @@
 	 Saying Y here will include a block driver for the Supercard CF.
 	 If unsure, say N.
 
+config NDS_SWAP_LR
+	bool "Swap L and R buttons"
+	depends on ARCH_NDS
+	default n
+	help
+	  Saying Y will swap the L and R hardware buttons so that R is shift 
+	      and L is control.
+	  This is useful if you are left handed or your L button is broken.
+
 endmenu

Modified: trunk/linux-2.6.x/arch/arm/mach-nds/button.c
===================================================================
--- trunk/linux-2.6.x/arch/arm/mach-nds/button.c	2007-04-18 12:58:07 UTC (rev 1735)
+++ trunk/linux-2.6.x/arch/arm/mach-nds/button.c	2007-04-18 21:41:26 UTC (rev 1736)
@@ -31,7 +31,11 @@
 static short ndsbuttons[] = { 
 	KEY_ENTER, KEY_SPACE, BTN_SELECT, BTN_START,
        	KEY_RIGHT, KEY_LEFT, KEY_UP, KEY_DOWN,
+	#ifndef CONFIG_NDS_SWAP_LR
 	KEY_RIGHTCTRL, KEY_LEFTSHIFT
+	#else
+	KEY_RIGHTSHIFT, KEY_LEFTCTRL
+	#endif
 };
 static short ndsbuttons2[] = { 
 	KEY_PAGEUP, KEY_PAGEDOWN




More information about the dslinux-commit mailing list