winex11.drv deadkey handling and games

F Capela darkwalker_ at yahoo.com
Sat Dec 15 10:38:50 CST 2007


A small fix to those who play games using keyboard layouts with deadkeys. Patch generated against 0.9.51 release.
Wine currently don't pass keypress events to the windows executable when the keypress is either a deadkey or follows a deadkey. This makes it impossible to use any of those keys with games that use WM_KEYDOWN events to track keypresses - two examples are Guild Wars and World of Warcraft.
This patch modifies dlls/winex11.drv/event.c to send all keypresses to the client, and dlls/winex11.drv/keyboard.c to implement a WM_KEYDOWN translation cache in order to correctly treat them as keys or deadkeys and keep text input with deadkeys working.
Only tested with Notepad and Guild Wars.
This is my first patch; don't hesitate to point any problems.


Fábio Oliveira Schmidt Capela
fabio.capela at yahoo.com



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: deadkeys-20071215.diff
Type: text/x-patch
Size: 5867 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071215/ea9c30ce/attachment.bin 


More information about the wine-patches mailing list