From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGweG-000746-DB for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:57:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGweD-00072x-Mt for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:57:27 -0400 Received: from [199.232.76.173] (port=43857 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGweD-00072e-I2 for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:57:25 -0400 Received: from py-out-1112.google.com ([64.233.166.179]:13554) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGweD-0003Vx-4a for qemu-devel@nongnu.org; Thu, 10 Jul 2008 09:57:25 -0400 Received: by py-out-1112.google.com with SMTP id p76so1833481pyb.10 for ; Thu, 10 Jul 2008 06:57:24 -0700 (PDT) Message-ID: <48761529.7040708@codemonkey.ws> Date: Thu, 10 Jul 2008 08:56:57 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Bug in SDL key event processing References: <48754975.1050303@dbservice.com> <20080709233752.GL4889@implementation> <48754DF2.2010704@dbservice.com> <20080709235516.GM4889@implementation> <48755320.5090707@dbservice.com> <48757FB8.8010400@codemonkey.ws> <4875C0B6.2060302@dbservice.com> <4876101A.1080800@codemonkey.ws> <487611FC.5070500@dbservice.com> In-Reply-To: <487611FC.5070500@dbservice.com> Content-Type: text/plain; charset=UTF-8; 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 Tomas Carnecky wrote: > Anthony Liguori wrote: >> Tomas Carnecky wrote: >>> When I press the 'Up' key, the xserver generates an event with >>> keycode 111 (tested with xev). SDL repacks the XEvent to a >>> SDL_KeyboardEvent with keycode=SDLK_UP and scancode=111. >> >> No. keysym.sym = SDLK_UP. scancode=111 presumably. > > Yes, that's what I meant. And you're sure that your host layout is set to en-us? The Up key should be scancode 98. Regards, Anthony Liguori >> What keyboard do you have? What is your host and guest locale? > > Host: Keyboard hardware is Logitech DiNovo Edge, connected via the > supplied USB Bluetooth 2.0 dongle. Using evdev driver and hald to > configure the keyboard, fdi policy file contains: model: evdev, > layout: us, variant: colemak. > > Guest: ubuntu 8.04.1, standard desktop installation with US layout > > tom > >