PERFORCE change 162175 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sat May 16 19:50:36 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=162175
Change 162175 by hselasky at hselasky_laptop001 on 2009/05/16 19:50:30
USB input:
- minor keycode swapping fix for Apple Keyboards
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#7 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/input/ukbd.c#7 (text+ko) ====
@@ -459,8 +459,8 @@
static uint8_t
ukbd_apple_fn(uint8_t keycode) {
switch (keycode) {
+ case 0x28: return 0x49; /* RETURN -> INSERT */
case 0x2a: return 0x4c; /* BACKSPACE -> DEL */
- case 0x2c: return 0x49; /* SPACE -> INSERT */
case 0x50: return 0x4a; /* LEFT ARROW -> HOME */
case 0x4f: return 0x4d; /* RIGHT ARROW -> END */
case 0x52: return 0x4b; /* UP ARROW -> PGUP */
@@ -472,8 +472,8 @@
static uint8_t
ukbd_apple_swap(uint8_t keycode) {
switch (keycode) {
- case 0x35: return 0x64; /* 5 -> d */
- case 0x64: return 0x35; /* d -> 5 */
+ case 0x35: return 0x64;
+ case 0x64: return 0x35;
default: return keycode;
}
}
More information about the p4-projects
mailing list