From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bs6cO-0002YD-FH for qemu-devel@nongnu.org; Tue, 03 Aug 2004 17:14:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bs6cN-0002Xx-IT for qemu-devel@nongnu.org; Tue, 03 Aug 2004 17:14:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bs6cN-0002Xn-H0 for qemu-devel@nongnu.org; Tue, 03 Aug 2004 17:14:43 -0400 Received: from [193.252.22.22] (helo=mwinf0902.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bs6Yj-00045b-KM for qemu-devel@nongnu.org; Tue, 03 Aug 2004 17:10:57 -0400 Received: from bellard.org (ATuileries-112-1-1-77.w80-11.abo.wanadoo.fr [80.11.167.77]) by mwinf0902.wanadoo.fr (SMTP Server) with ESMTP id 088031800292 for ; Tue, 3 Aug 2004 23:10:56 +0200 (CEST) Message-ID: <410FFF70.5070207@bellard.org> Date: Tue, 03 Aug 2004 23:11:12 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Keyboard patch for windows References: <20040719143203.B8E8.ERIK.KARLSSON@bonetmail.com> In-Reply-To: <20040719143203.B8E8.ERIK.KARLSSON@bonetmail.com> 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 Strange since Windows should send the raw keycodes directly to SDL. I think your patch is too complicated to be integrated in an SDL target. Can you find a simpler solution ? Fabrice. Erik Karlsson wrote: > Keyboard input via SDL on windows it not working well. It is for example > impossible to distinguish between left and rihgt alt and control and > between the arrow keys and the numpad arrow keys. > > I have fixed this problem by using windows low level keyboadrd hooks > (SetWindowsHookEx, WH_KEYBOARD_LL) instead of SDL for keyboard input. > > Low level keybord hooks should work on windows NT 4.0 SP3 or later, eg. > windows 2000 and windows XP but not on windows 9x. For this reason I use > another method if low level keyboard hooks are unsupported. Tihis method > involves hooking up the winidow procedure and using some ugly fixes and > there is still problems when you press the two shift keys simultaneously. > I have however not tested this method on win9x because i have no win9x > machine to test it on. > > Erik > > > ------------------------------------------------------------------------ > > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel