Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BsIi0-0000xc-AL for qemu-devel@nongnu.org; Wed, 04 Aug 2004 06:09:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BsIhz-0000xP-K7 for qemu-devel@nongnu.org; Wed, 04 Aug 2004 06:09:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BsIhz-0000xF-EF for qemu-devel@nongnu.org; Wed, 04 Aug 2004 06:09:19 -0400 Received: from [213.228.0.169] (helo=postfix3-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BsIe9-0004eq-VR for qemu-devel@nongnu.org; Wed, 04 Aug 2004 06:05:22 -0400 Received: from imp4-q.free.fr (imp4-q.free.fr [212.27.42.4]) by postfix3-2.free.fr (Postfix) with ESMTP id DD4A2C75A for ; Wed, 4 Aug 2004 12:05:19 +0200 (CEST) Message-ID: <1091613916.4110b4dc59c0a@imp4-q.free.fr> Date: Wed, 4 Aug 2004 12:05:16 +0200 From: Laurent Amon Subject: Re: [Qemu-devel] Keyboard patch for windows References: <20040719143203.B8E8.ERIK.KARLSSON@bonetmail.com> <410FFF70.5070207@bellard.org> <20040804103148.10A7.ERIK.KARLSSON@bonetmail.com> In-Reply-To: <20040804103148.10A7.ERIK.KARLSSON@bonetmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 Selon Erik Karlsson : > 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 nee= d > to implement keyboard, mouse and display natively on windows. There are a few things I'm not happy with with the SDL keyboard implement= ation (as well as video, when it comes to Quartz). The mac keyboard is quite fu= barred (only letters and keypad numbers are correct). I posted on the list a pat= ch (or rather, a modified version of one somebody else posted), but I am still n= ot happy with it : - I can't seem to map to a 104 keys windows keyboard (having Command as W= indows key, and I am missing the key next to the left shift (<> on my french key= board) but that seems rather a Windows problem as I am using a Win98 first editi= on. - 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-be= tween, 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 wron= g colors (SDL 1.2.7, macos X.3.4) and that it is very easy to crash in wind= owed 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 t= o reuse, for instance). Anyway, one can live with it for now. Lga.