Wrong keycodes ?
Dmitry Timoshkov
dmitry at baikal.ru
Wed Feb 23 10:04:40 CST 2005
"George Ginden" <ginden at email.com> wrote:
> VK_LEFT is #defined as 0x25
>
> Now If I press the left arrow key, wine produces the following trace
>
> trace:keyboard:X11DRV_ToUnicodeEx NumLockMask = 0010
> trace:keyboard:X11DRV_ToUnicodeEx AltGrMask = 0010
> trace:keyboard:X11DRV_ToUnicodeEx Found keycode 100 (0x64)
>
> Shouldn't it be 0x25 ??
> This is the same for the other arrow keys, the code defined
> is not the same as the code produced by the trace.
>
> Also while coding in dlls/user/edit.c, the following 'if' just fails for the arrow keys:
> eg:
> if (key == VK_LEFT)
> printf ("left pressed\n");
>
> Am I missing something ?
You are confusing X11 key codes with Win32 virtual key codes without
understanding what each of them means.
--
Dmitry.
More information about the wine-devel
mailing list