patch-2.3.39 linux/drivers/usb/keybdev.c

Next file: linux/drivers/usb/mousedev.c
Previous file: linux/drivers/usb/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/drivers/usb/keybdev.c linux/drivers/usb/keybdev.c
@@ -43,11 +43,11 @@
 	  0x26, 0x25, 0x1e, 0x1f, 0x20, 0x21, 0x22, 0x00,
 	  0x23, 0x24, 0x25, 0x26, 0x27 };
 
-#elif CONFIG_MAC_KEYBOARD
+#elif CONFIG_ADB_KEYBOARD
 
 static unsigned char keybdev_mac_codes[256] =
 	{ 0, 53, 18, 19, 20, 21, 23, 22, 26, 28, 25, 29, 27, 24, 51, 48,
-	 12, 13, 14, 15, 17, 16, 32, 34, 31, 35, 33, 30, 36, 54,  0,  1,
+	 12, 13, 14, 15, 17, 16, 32, 34, 31, 35, 33, 30, 36, 54,128,  1,
 	  2,  3,  5,  4, 38, 40, 37, 41, 39, 50, 56, 42,  6,  7,  8,  9,
 	 11, 45, 46, 43, 47, 44,123, 67, 55, 49, 57,122,120, 99,118, 96,
 	 97, 98,100,101,109, 71,107, 89, 91, 92, 78, 86, 87, 88, 69, 83,
@@ -85,10 +85,10 @@
 		}
 	} else handle_scancode(code, down);
 
-#elif CONFIG_MAC_KEYBOARD
+#elif CONFIG_ADB_KEYBOARD
 
-	if (keycode < 128 && keybdev_mac_codes[code]) 
-		handle_scancode(keybdev_mac_codes[code], down);
+	if (code < 128 && keybdev_mac_codes[code]) 
+		handle_scancode(keybdev_mac_codes[code] & 0x7f, down);
 	else
 		printk(KERN_WARNING "keybdev.c: can't emulate keycode %d\n", code);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)