Why double translation on keydown?
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Apr 7 21:11:47 CDT 2007
"Shachar Shemesh" <shachar at shemesh.biz> wrote:
> This process seems, to me, overly long and inefficient. It requires
> building fairly complex lookup tables for both vkey and Windows keycode.
> I fail to see what is gained. Why not use the following process instead:
>
> * An X11 event arrives
> * Use the native keycode as the keycode.
> * Translate the vkey as before.
> * Send WM_(SYS)KEYDOWN as before
> * In X11DRV_ToUnicodeEx:
> * Use the keycode to lookup with key using XLookupString
X11DRV_ToUnicodeEx is a backend of the Win32 API ToUnicodeEx and it takes
a virtual key code. I.e. ToUnicodeEx takes a predefined input and should
return data very closely resembling what Windows does.
--
Dmitry.
More information about the wine-devel
mailing list