winex11.drv: Bias MapVirtualKeyEx(MAPVK_VSC_TO_VK) against numpad vkeys.

Ken Thomases ken at codeweavers.com
Fri May 16 10:37:07 CDT 2008


The scan codes for the numeric keypad keys and those for the arrow keys and
keys like Home, End, etc. often match (ignoring the extended key bit).
However, if you map from one of those scan codes to a vkey, Windows reliably
prefers the non-numpad vkey.

At least, this is what Windows XP does with a U.S. keyboard layout.  Also,
this fixes a bug with those keys not being usable in Guild Wars.
---
  dlls/user32/tests/input.c   |   28 ++++++++++++++++++++++++++++
  dlls/winex11.drv/keyboard.c |   14 ++++++++++----
  2 files changed, 38 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0d3cf9b1aa58454a9219229cba2af4ba68a0d0b8.diff
Type: text/x-patch
Size: 3105 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080516/83d41b16/attachment.bin 


More information about the wine-patches mailing list