Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FvYyg-0001QN-VL for qemu-devel@nongnu.org; Wed, 28 Jun 2006 08:17:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FvYyf-0001Px-9i for qemu-devel@nongnu.org; Wed, 28 Jun 2006 08:17:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FvYyf-0001Pu-40 for qemu-devel@nongnu.org; Wed, 28 Jun 2006 08:17:05 -0400 Received: from [213.25.173.251] (helo=ns.pers.pl) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FvZAy-0007Py-KO for qemu-devel@nongnu.org; Wed, 28 Jun 2006 08:29:49 -0400 Received: from localhost ([127.0.0.1]) by ns.pers.pl with esmtp (Exim 4.61) (envelope-from ) id 1FvYyc-0002e2-7m for qemu-devel@nongnu.org; Wed, 28 Jun 2006 14:17:02 +0200 Received: from ns.pers.pl ([127.0.0.1]) by localhost (ns.pers.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07875-11 for ; Wed, 28 Jun 2006 14:17:00 +0200 (CEST) Received: from aow214.internetdsl.tpnet.pl ([83.17.130.214] helo=[10.0.0.21]) by ns.pers.pl with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.61) (envelope-from ) id 1FvYya-0002du-81 for qemu-devel@nongnu.org; Wed, 28 Jun 2006 14:17:00 +0200 From: =?utf-8?q?Rafa=C5=82_Cygnarowski?= Subject: Re: [Qemu-devel] qemu kbd emulation Date: Wed, 28 Jun 2006 14:16:56 +0200 References: <200606281027.31617.zswi@pers.pl> <44A24028.20005@gmx.de> In-Reply-To: <44A24028.20005@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606281416.57021.zswi@pers.pl> 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 > What SDL version are you using? I noticed some strange keyboard behavior > with SDL 1.2.9 (Debian package), and this didn't happen when using SDL > 1.2.10 (self-built). The problems were things like no Shift-Tab in > Windows, and "showkey" under Linux displaying strange keycodes when > using Shift-Tab. I was using SDL 1.2.9. After upgrade to 1.2.10 (and qemu recompilation) nothing changed. I also made same more tests and now I know sth more. 1. ps2_queue I changed ps2_queue to see if my patch do what I thought=20 it should do. =2D- BEGIN -- =2D-- ps2.c.old 2006-06-28 13:21:01.000000000 +0200 +++ ps2.c 2006-06-28 13:00:17.000000000 +0200 @@ -117,6 +117,8 @@ void ps2_queue(void *opaque, int b) { +printf("%i ", b); + PS2State *s =3D (PS2State *)opaque; PS2Queue *q =3D &s->queue; =2D- END -- Result on pressing UP key: 224 42 224 72 224 200 224 170, so it's correct. 2. I understood output of my program wrong. Output was sth like:=20 224 224 72 88224 224 170 where these to 8s were strange for me. The true is that qemu dropped somewhere part of my fake keycodes + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kbd_put_keycode(0xe0); + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kbd_put_keycode(0x2a); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this one was lost + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kbd_put_keycode(0xe0); + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kbd_put_keycode(0xaa); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - and this one too As the result of this drop, after pressing UP key (without my=20 test program loaded) DOS displays ONE '8' character. When I load my TSR test program DOS displays TWO '8' characters! I suppose these 8s are the answare(?) why arrow keys are interpreted twice in such programs like Dos Navigator when I run them with qemu. So now I have to find out: =2D where those fake keycodes were dropped, =2D why after loading my test program those two 8s are displayed=20 (there is some unneeded interrupt generated - am I right?). Honestly, I don't know where I should start looking... =2D-=20 Rafa=C5=82 Cygnarowski rafi@pers.pl PS. My goal is to lost those fake twice pressed keys=20 becouse I use (want to use) qemu only for DOS guest OS.