From: "Rafał Cygnarowski" <zswi@pers.pl>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu kbd emulation
Date: Wed, 28 Jun 2006 14:16:56 +0200 [thread overview]
Message-ID: <200606281416.57021.zswi@pers.pl> (raw)
In-Reply-To: <44A24028.20005@gmx.de>
> 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
it should do.
-- BEGIN --
--- 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 = (PS2State *)opaque;
PS2Queue *q = &s->queue;
-- 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:
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
+ kbd_put_keycode(0xe0);
+ kbd_put_keycode(0x2a);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this one was lost
+ kbd_put_keycode(0xe0);
+ kbd_put_keycode(0xaa);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - and this one too
As the result of this drop, after pressing UP key (without my
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:
- where those fake keycodes were dropped,
- why after loading my test program those two 8s are displayed
(there is some unneeded interrupt generated - am I right?).
Honestly, I don't know where I should start looking...
--
Rafał Cygnarowski
rafi@pers.pl
PS. My goal is to lost those fake twice pressed keys
becouse I use (want to use) qemu only for DOS guest OS.
next prev parent reply other threads:[~2006-06-28 12:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-28 8:27 [Qemu-devel] qemu kbd emulation Rafał Cygnarowski
2006-06-28 8:39 ` Oliver Gerlich
2006-06-28 12:16 ` Rafał Cygnarowski [this message]
2006-06-28 14:28 ` Jim C. Brown
2006-06-28 17:27 ` Rafał Cygnarowski
2006-06-29 20:56 ` Rafał Cygnarowski
2006-06-28 15:05 ` Stuart Brady
2006-06-28 9:39 ` Stuart Brady
2006-06-28 10:07 ` Stuart Brady
2006-06-28 11:17 ` Rafał Cygnarowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606281416.57021.zswi@pers.pl \
--to=zswi@pers.pl \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).