dinput: the DIK_ keycode is not the same as the scancode.

Aric Stewart aric at codeweavers.com
Mon Jul 28 09:17:35 CDT 2008


It is mapped with the keyboard mapping to the resulting character. so 
the key 'A' is DIK_A nomatter what its scancode or vkey would be. This 
is relevent to Japanese keymapping where the '@' key is in the '[' 
location the scancode for both is 0x22 but dinput generates DIK_AT in 
japanese and DIK_LBRACKET in us_qwerty

reworked to remove the giant case statement and hopefully be more clear.
remove japan specific stuff as with the proper keyboard scancodes it 
works out.
---
  dlls/dinput/keyboard.c |   25 ++++++++++++++++++++++++-
  1 files changed, 24 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2c953a557eb305c779a5183b74754edf79266977.diff
Type: text/x-patch
Size: 1785 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080728/ff779daa/attachment.bin 


More information about the wine-patches mailing list