From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqfEx-0006ij-15 for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:20:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqfEl-0006Ze-SS for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:20:39 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cqf1p-00086S-17 for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:07:17 -0500 Received: from localhost (localhost [127.0.0.1]) by djali.polytechnique.org (Postfix) with ESMTP id DA7F3331A7 for ; Mon, 17 Jan 2005 23:07:15 +0100 (CET) Received: from djali.polytechnique.org ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16635-04 for ; Mon, 17 Jan 2005 23:07:15 +0100 (CET) Received: from [84.99.204.73] (unknown [84.99.204.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 92D63331BB for ; Mon, 17 Jan 2005 23:07:15 +0100 (CET) Message-ID: <41EC3742.8000307@bellard.org> Date: Mon, 17 Jan 2005 23:08:02 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Mac keyboard not supported References: <726C0B9A-5958-11D9-8651-000393CFF340@teleline.es> <38696B0C-5CFB-11D9-B1E0-00039307264A@cs.stanford.edu> <1105980688.41ebed104f3b5@imp4-q.free.fr> In-Reply-To: <1105980688.41ebed104f3b5@imp4-q.free.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 For the problem of the Mac keyboard, I think SDL should be fixed first to return correct SDL keysyms. An interesting patch was submitted some time ago to use the scan codes directly, as we do on PCs (scan codes do not depend on the keyboard key mapping). If it is reported to work on most Macs, it should be the default because it avoids the problem of translating keysyms to scan codes. Fabrice. Laurent Amon wrote: > Hi, > > Selon Johannes Schindelin : > > >>I don't think the SDL guys are slow. And it is no major rework. It is one >>file, one function, and if I'm correct, just deletion of 3 lines -- and it >>should be a lot easier than replicating a whole keymap. > > If you can point me to the 3 lines, I'll try to compile SDL and see if it works > better. I hope I'll have a moment to look at it in the next few days. Not my > priority, though. > > >>For normal users, there is no need to differentiate between left and right >>modifier keys. Also, it is not important to have exactly the same mapping >>as on PC, but only that if you hit a key (e.g. '/') that the guest >>actually understands the same key ('/'). No more, no less. > > I don't agree with you. When you type '/', the guest OS needs to to know the > keycode corresponding to the '/' on the keyboard you emulate as well as the > modifier key mask necessary to generate it. I believe windows works on that > level, does it not? I don't think that you can simply pass the character. > As to differenciating between left/right keys, it would be handy in order to > emulate a Alt-Graph key (which is needed since qemu now grabs ctrl-alt), and > the "contextual menu" key too. Not to mention playing pinball. > > >>[...] And yes, unless the good SDL people >>decide to release (after a patch was sent to them), you'd have to >>distribute a patched SDL (which would of course, being patcheed, break all >>apps using SDL -- NOT!). > > As you point out, it would probably not break anything. It is just extra > logistics. > > Bye, > > Lga. > > > > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > > >