From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KH46p-0007Qu-Vg for qemu-devel@nongnu.org; Thu, 10 Jul 2008 17:55:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KH46p-0007Q4-25 for qemu-devel@nongnu.org; Thu, 10 Jul 2008 17:55:27 -0400 Received: from [199.232.76.173] (port=35872 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH46o-0007Q1-SP for qemu-devel@nongnu.org; Thu, 10 Jul 2008 17:55:26 -0400 Received: from mtaout01-winn.ispmail.ntl.com ([81.103.221.47]:5688) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KH46o-0007AC-7J for qemu-devel@nongnu.org; Thu, 10 Jul 2008 17:55:26 -0400 Received: from aamtaout02-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20080710220012.UBNL28496.mtaout01-winn.ispmail.ntl.com@aamtaout02-winn.ispmail.ntl.com> for ; Thu, 10 Jul 2008 23:00:12 +0100 Received: from implementation.famille.thibault.fr ([82.21.96.230]) by aamtaout02-winn.ispmail.ntl.com with ESMTP id <20080710215853.NQRW29365.aamtaout02-winn.ispmail.ntl.com@implementation.famille.thibault.fr> for ; Thu, 10 Jul 2008 22:58:53 +0100 Received: from samy by implementation.famille.thibault.fr with local (Exim 4.69) (envelope-from ) id 1KH46m-0001JF-WA for qemu-devel@nongnu.org; Thu, 10 Jul 2008 23:55:25 +0200 Date: Thu, 10 Jul 2008 22:55:24 +0100 From: Samuel Thibault Subject: Re: [Qemu-devel] Bug in SDL key event processing Message-ID: <20080710215524.GB4579@implementation> References: <20080709235516.GM4889@implementation> <48755320.5090707@dbservice.com> <48757FB8.8010400@codemonkey.ws> <4875C0B6.2060302@dbservice.com> <4876101A.1080800@codemonkey.ws> <487611FC.5070500@dbservice.com> <487616BB.8020402@dbservice.com> <48761F31.4090909@codemonkey.ws> <48762C59.9010204@dbservice.com> <48766211.2090304@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <48766211.2090304@codemonkey.ws> 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 Anthony Liguori, le Thu 10 Jul 2008 14:25:05 -0500, a écrit : > >Keep in mind that using '-k' completely changes the semantics of the > >keyboard. I'm using the colemak layout, so my top row is: qwfpg. For > >the sake of simplicity, assume that the guest uses the standard en-us > >layout. > > Then you would need to add a colemak translation table if you wanted > that to be reflected in the guest. However, if you use -k en-us and use > en-us in the guest, it should just work for you. That won't for the shifted characters. Let's take for instance azerty, which has the numbers in the shifted position instead of the direct position. Typing shift+1 will produce a 1 keysym, which will indeed be converted to the correct scancode, but shift will be simulated too, and thus produce in the guest '!'... There is no other correct than properly reverse-engineering the keysyms we get into a positional keycode, and then convert to PS2 scancode, and let the guest use its keymaps.. Samuel