[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Cocoa keymap
From: |
Joachim Henke |
Subject: |
[Qemu-devel] Cocoa keymap |
Date: |
Thu, 24 Nov 2005 21:57:12 +0100 |
Hi, I tried the current Qemu CVS sources on my iMac G5 (Mac OS X
10.4.3) and was really happy about the cocoa improvements. Thank you
for this great work! But while doing some x86 emulation (running
Linux and Win98 as guests) I encountered a small error: On my German
Apple keyboard the [^] key didn't work, while pressing the [<] key
produced a ^. This was really annoying since I need the [<] key for
redirections and pipes. I played around with showkey and xev and got
the correct keycodes:
--- qemu-cvs/cocoa.m
+++ qemu-jh/cocoa.m
@@ -187,7 +187,7 @@
45, // 7 0x07 0x2d X QZ_x
46, // 8 0x08 0x2e C QZ_c
47, // 9 0x09 0x2f V QZ_v
- 0, // 10 0x0A Undefined
+ 41, // 10 0x0A 0x29 ` QZ_BACKQUOTE
48, // 11 0x0B 0x30 B QZ_b
16, // 12 0x0C 0x10 Q QZ_q
17, // 13 0x0D 0x11 W QZ_w
@@ -227,7 +227,7 @@
52, // 47 0x2F 0x34 . QZ_PERIOD
15, // 48 0x30 0x0f TAB QZ_TAB
57, // 49 0x31 0x39 SPACE QZ_SPACE
- 41, // 50 0x32 0x29 ` QZ_BACKQUOTE
+ 86, // 50 0x32 0x56
14, // 51 0x33 0x0e BKSP QZ_BACKSPACE
0, // 52 0x34 Undefined
1, // 53 0x35 0x01 ESC QZ_ESCAPE
With this patch applied my keyboard now works correctly with the
guest OS. I'm not sure if Apple has some inconsistency in the
keycodes of their localised keyboards, and this patch would break US
or other versions. It would be nice, if somebody could give it a try.
Best regards
Joachim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] Cocoa keymap,
Joachim Henke <=