From: Laurent Amon <amon@stanfordalumni.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Keyboard patch for windows
Date: Wed, 4 Aug 2004 12:05:16 +0200 [thread overview]
Message-ID: <1091613916.4110b4dc59c0a@imp4-q.free.fr> (raw)
In-Reply-To: <20040804103148.10A7.ERIK.KARLSSON@bonetmail.com>
Selon Erik Karlsson <erik.karlsson@bonetmail.com>:
> I agree that it is unclean to have native windows code in an SDL driver.
> It would of course be better to have a separate keyboard driver for
> windows. The problem is that the qemu architecture does not allow
> separate drivers for keyboard, mouse and display. This makes a windows
> driver just for the keybord impossible. A windows driver would then need
> to implement keyboard, mouse and display natively on windows.
There are a few things I'm not happy with with the SDL keyboard implementation
(as well as video, when it comes to Quartz). The mac keyboard is quite fubarred
(only letters and keypad numbers are correct). I posted on the list a patch (or
rather, a modified version of one somebody else posted), but I am still not
happy with it :
- I can't seem to map to a 104 keys windows keyboard (having Command as Windows
key, and I am missing the key next to the left shift (<> on my french keyboard)
but that seems rather a Windows problem as I am using a Win98 first edition.
- I cannot differentiate between left/right modifier keys, but to do so, one
would need to go through low level Carbon interfaces, if I understand
correctly).
On the video side, SDL plays rather liberally with fade-in fade-out when
switching video modes, and since it always goes back to native mode in-between,
and seems to double the changes when using 2 screens, I can just type
Ctrl-Shift-f and go get a coffee. Add to that host 16-bit mode gives wrong
colors (SDL 1.2.7, macos X.3.4) and that it is very easy to crash in windowed
mode, I'd say getting off the SDL code might be considered at some point unless
we want to patch it (there is a Carbon interface for Bochs we might try to
reuse, for instance).
Anyway, one can live with it for now.
Lga.
next prev parent reply other threads:[~2004-08-04 10:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-19 12:55 [Qemu-devel] Keyboard patch for windows Erik Karlsson
2004-08-03 21:11 ` Fabrice Bellard
2004-08-04 8:38 ` Erik Karlsson
2004-08-04 10:05 ` Laurent Amon [this message]
2004-08-04 10:16 ` Pierre d'Herbemont
2004-08-04 11:55 ` Laurent Amon
2004-08-04 15:53 ` Pierre d'Herbemont
2004-08-04 15:24 ` Jim C. Brown
2004-08-04 20:24 ` Lionel Ulmer
2004-08-04 21:00 ` Fabrice Bellard
2004-08-04 21:03 ` Fabrice Bellard
2004-08-05 0:08 ` Erik Karlsson
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=1091613916.4110b4dc59c0a@imp4-q.free.fr \
--to=amon@stanfordalumni.org \
--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).