From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbtLQ-0004TX-Ou for qemu-devel@nongnu.org; Mon, 23 Oct 2006 02:31:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GbtLP-0004SO-NN for qemu-devel@nongnu.org; Mon, 23 Oct 2006 02:31:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbtLP-0004S4-7j for qemu-devel@nongnu.org; Mon, 23 Oct 2006 02:31:31 -0400 Received: from [211.5.2.73] (helo=nm01omta015.dion.ne.jp) by monty-python.gnu.org with smtp (Exim 4.52) id 1GbtLO-00032m-R0 for qemu-devel@nongnu.org; Mon, 23 Oct 2006 02:31:31 -0400 Message-ID: <001e01c6f66c$e3bfb350$0464a8c0@athlon> From: "Kazu" References: <000601c6f596$1102bf10$0464a8c0@athlon> <453B54EB.1070209@geodb.org> Subject: Re: [Qemu-devel] AltGr key for Windows host Date: Mon, 23 Oct 2006 15:31:36 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hello, Andreas. Thank you. It seems that ctrl left event before right alt makes something wrong for SDL_VIDEODRIVER=windib. I updated binary. SDL is patched and updated. SDL version is 1.2.11 so that windib is default. How about this one. It seems that Knoppix 4.0 works good for me, though I don't know much German... http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20061023-keyboard.zip When SDL_VIDEODRIVER=windib, ctrl alt events before right alt is removed. ------------------------ OS ver = 5.1 0.0.2600 Keyboard = 7, 0 Layout = 0x04070407 LayoutName = 00000407 key = 0x133 key name = right alt PRESSED sdl_process_key: keycode = 0xb8 ------------------------ OS ver = 5.1 0.0.2600 Keyboard = 7, 0 Layout = 0x04070407 LayoutName = 00000407 key = 0x133 key name = right alt RELEASED sdl_process_key: keycode = 0xb8 It is necessary to make a conversion table for SDL_VIDEODRIVER=directx. DirectInput reports DirectInput's keycode. But QEMU needs AT keyboard's mechanical scancode. I know a key layout of German keyboard. But I don't know which value is reported by DirectInput when the key is pressed. If windib works correct, comparing output results of windib and directx makes the conversion table. I think it is a lot of work, though. Regards, Kazu Sent: Sunday, October 22, 2006 8:24 PM Andreas Bollhalder wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello Kazu > > I did the test as you asked. My Machine is a Notebook with a Pentium III > 1200MHz ULV running WinXP SP2 english. See below for the results. > > Greetings > Andreas > > ============================================================ > SET SDL_VIDEODRIVER=windib > - -------------------------- > > C:\Documents and Settings\bolle\Desktop\qemu-20061020-keyboard>REM Start > qemu on windows. > Could not open '\\.\kqemu' - QEMU acceleration layer not activated > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x132 key name = left ctrl PRESSED > sdl_process_key: keycode = 0x1d > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x133 key name = right alt PRESSED > sdl_process_key: keycode = 0xb8 > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x132 key name = left ctrl RELEASED > sdl_process_key: keycode = 0x1d > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x133 key name = right alt RELEASED > sdl_process_key: keycode = 0xb8 > > ============================================================ > SET SDL_VIDEODRIVER=directx > - --------------------------- > > C:\Documents and Settings\bolle\Desktop\qemu-20061020-keyboard>REM Start > qemu on windows. > Could not open '\\.\kqemu' - QEMU acceleration layer not activated > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x133 key name = right alt PRESSED > sdl_process_key: keycode = 0xb8 > - ------------------------ > OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x08070807 > LayoutName = 00000807 > key = 0x133 key name = right alt RELEASED > sdl_process_key: keycode = 0xb8 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFFO1TqkyKr2gmercERAlRyAJ9nVEMyZP2zy5A78paf1G/zvQeUBwCghc+s > 9Ew6EGkzZkAGlSSG3Soe1GA= > =kneY > -----END PGP SIGNATURE-----