* [Qemu-devel] AltGr key for Windows host
@ 2006-10-22 4:53 Kazu
2006-10-22 11:24 ` Andreas Bollhalder
2006-10-23 10:35 ` Jan Marten Simons
0 siblings, 2 replies; 6+ messages in thread
From: Kazu @ 2006-10-22 4:53 UTC (permalink / raw)
To: qemu-devel
Hi,
I made German language environment on Windows XP Japanese host.
I investigated a problem of AltGr key.
If you have a German keyboard, please use this binary and tell me the data
which is displayed on console window when AltGr key is pressed.
I want to know the results for both SDL_VIDEODRIVER=windib and
SDL_VIDEODRIVER=directx.
http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20061020-keyboard.zip
These are reference outputs. When SDL_VIDEODRIVER=windib, an event that left
ctrl key is pressed is added to the event right alt is pressed.
------------------------
OS ver = 5.1 0.0.2600 Keyboard = 7, 0 Layout = 0x04070407
LayoutName = 00000407
key = 0x132 key name = left ctrl PRESSED
sdl_process_key: keycode = 0x1d
------------------------
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 = 0x132 key name = left ctrl RELEASED
sdl_process_key: keycode = 0x1d
------------------------
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
When SDL_VIDEODRIVER=directx, only right alt key event is made.
------------------------
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
There is a duscussion about alt-ctrl.
http://blogs.msdn.com/oldnewthing/archive/2004/03/29/101121.aspx
Regards,
Kazu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] AltGr key for Windows host
2006-10-22 4:53 [Qemu-devel] AltGr key for Windows host Kazu
@ 2006-10-22 11:24 ` Andreas Bollhalder
2006-10-23 6:31 ` Kazu
2006-10-23 10:35 ` Jan Marten Simons
1 sibling, 1 reply; 6+ messages in thread
From: Andreas Bollhalder @ 2006-10-22 11:24 UTC (permalink / raw)
To: qemu-devel
-----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-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] AltGr key for Windows host
2006-10-22 11:24 ` Andreas Bollhalder
@ 2006-10-23 6:31 ` Kazu
2006-10-24 16:04 ` Andreas Bollhalder
0 siblings, 1 reply; 6+ messages in thread
From: Kazu @ 2006-10-23 6:31 UTC (permalink / raw)
To: qemu-devel
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-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] AltGr key for Windows host
2006-10-23 6:31 ` Kazu
@ 2006-10-24 16:04 ` Andreas Bollhalder
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Bollhalder @ 2006-10-24 16:04 UTC (permalink / raw)
To: qemu-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kazu wrote:
> 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
Hello Kazu
I tried it again and it seems to work fine. If I find anything with my
QEMU instances, I will write you. Thanks a lot for your fine work.
Andreas
============================================================
WINDIB:
- -------
C:\Documents and Settings\bolle\Desktop\qemu-20061023-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
============================================================
DIRECTX:
- --------
C:\Documents and Settings\bolle\Desktop\qemu-20061023-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
iD8DBQFFPjl7kyKr2gmercERAs6XAJoCs+Bs6emBnOZ75howQ90XHxFJDgCgovrE
yih4CiEJgUw9WimNdY0TrR4=
=SaNC
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] AltGr key for Windows host
2006-10-22 4:53 [Qemu-devel] AltGr key for Windows host Kazu
2006-10-22 11:24 ` Andreas Bollhalder
@ 2006-10-23 10:35 ` Jan Marten Simons
2006-10-23 12:36 ` Kazu
1 sibling, 1 reply; 6+ messages in thread
From: Jan Marten Simons @ 2006-10-23 10:35 UTC (permalink / raw)
To: qemu-devel
Kazu schrieb:
> Hi,
>
> I made German language environment on Windows XP Japanese host.
> I investigated a problem of AltGr key.
>
> If you have a German keyboard, please use this binary and tell me the data
> which is displayed on console window when AltGr key is pressed.
>
> I want to know the results for both SDL_VIDEODRIVER=windib and
> SDL_VIDEODRIVER=directx.
>
I forward this from Jeremie, as he is not subscribed:
Cc: jeremie@le-hen.org
Reply to: [Qemu-devel] AltGr key for Windows host
Hi Kazu,
here is the output of the debug binary you provided. I'm running a
simple french keyboard and cannot use characters access by AltGr.r*
This happens when I press and then release AltGr:
------------------------
OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
LayoutName = 0000040C
key = 0x132 key name = left ctrl PRESSED
sdl_process_key: keycode = 0x1d
------------------------
OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
LayoutName = 0000040C
key = 0x133 key name = right alt PRESSED
sdl_process_key: keycode = 0xb8
------------------------
OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
LayoutName = 0000040C
key = 0x132 key name = left ctrl RELEASED
sdl_process_key: keycode = 0x1d
------------------------
OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
LayoutName = 0000040C
key = 0x133 key name = right alt RELEASED
sdl_process_key: keycode = 0xb8
Thank you.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] AltGr key for Windows host
2006-10-23 10:35 ` Jan Marten Simons
@ 2006-10-23 12:36 ` Kazu
0 siblings, 0 replies; 6+ messages in thread
From: Kazu @ 2006-10-23 12:36 UTC (permalink / raw)
To: qemu-devel
Hi, Jan and Jeremie.
Thank you for your reply.
I think your result is for SDL_VIDEODRIVER=windib. I updated the binary. How
about this one? Does AltGr key work for you?
http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20061023-keyboard.zip
Regards,
Kazu
Sent: Monday, October 23, 2006 7:35 PM Jan wrote:
> Kazu schrieb:
>> Hi,
>>
>> I made German language environment on Windows XP Japanese host.
>> I investigated a problem of AltGr key.
>>
>> If you have a German keyboard, please use this binary and tell me the
data
>> which is displayed on console window when AltGr key is pressed.
>>
>> I want to know the results for both SDL_VIDEODRIVER=windib and
>> SDL_VIDEODRIVER=directx.
>>
> I forward this from Jeremie, as he is not subscribed:
>
> Cc: jeremie@le-hen.org
> Reply to: [Qemu-devel] AltGr key for Windows host
>
> Hi Kazu,
>
> here is the output of the debug binary you provided. I'm running a
> simple french keyboard and cannot use characters access by AltGr.r*
> This happens when I press and then release AltGr:
> ------------------------
> OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
> LayoutName = 0000040C
> key = 0x132 key name = left ctrl PRESSED
> sdl_process_key: keycode = 0x1d
> ------------------------
> OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
> LayoutName = 0000040C
> key = 0x133 key name = right alt PRESSED
> sdl_process_key: keycode = 0xb8
> ------------------------
> OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
> LayoutName = 0000040C
> key = 0x132 key name = left ctrl RELEASED
> sdl_process_key: keycode = 0x1d
> ------------------------
> OS ver = 5.1 0.0.2600 Keyboard = 4, 0 Layout = 0x040c040c
> LayoutName = 0000040C
> key = 0x133 key name = right alt RELEASED
> sdl_process_key: keycode = 0xb8
>
> Thank you.
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-24 16:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-22 4:53 [Qemu-devel] AltGr key for Windows host Kazu
2006-10-22 11:24 ` Andreas Bollhalder
2006-10-23 6:31 ` Kazu
2006-10-24 16:04 ` Andreas Bollhalder
2006-10-23 10:35 ` Jan Marten Simons
2006-10-23 12:36 ` Kazu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).