[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Keyboard patch for windows

From: Fabrice Bellard
Subject: Re: [Qemu-devel] Keyboard patch for windows
Date: Tue, 03 Aug 2004 23:11:12 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

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 ?


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.



Qemu-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]