qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Keyboard patch for windows
@ 2004-07-19 12:55 Erik Karlsson
  2004-08-03 21:11 ` Fabrice Bellard
  0 siblings, 1 reply; 12+ messages in thread
From: Erik Karlsson @ 2004-07-19 12:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

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

[-- Attachment #2: qemu-0.6.0-kbdfix.patch.gz --]
[-- Type: application/octet-stream, Size: 2799 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-08-05  0:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-19 12:55 [Qemu-devel] Keyboard patch for windows Erik Karlsson
2004-08-03 21:11 ` Fabrice Bellard
2004-08-04  8:38   ` Erik Karlsson
2004-08-04 10:05     ` Laurent Amon
2004-08-04 10:16       ` Pierre d'Herbemont
2004-08-04 11:55         ` Laurent Amon
2004-08-04 15:53           ` Pierre d'Herbemont
2004-08-04 15:24     ` Jim C. Brown
2004-08-04 20:24       ` Lionel Ulmer
2004-08-04 21:00       ` Fabrice Bellard
2004-08-04 21:03     ` Fabrice Bellard
2004-08-05  0:08       ` Erik Karlsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).