Hello,
It's my first time I look into source of Wine. I found a bug near dlls/user32/input.c. You can find here this code:
SHORT WINAPI GetAsyncKeyState(INT nKey) { return USER_Driver->pGetAsyncKeyState( nKey ); }
The problem is that this function don't return right value in every case. Could someone explain me how it works, please?
I can not find anywhere code writing any value to "pGetAsyncKeyState" nor function that is executed when "pGetAsyncKeyState" is called.
On Mon, 2007-05-14 at 20:12 +0200, Rafał Miłecki wrote:
I can not find anywhere code writing any value to "pGetAsyncKeyState" nor function that is executed when "pGetAsyncKeyState" is called.
What you're looking at here is a function pointer to the driver that handles input for your windowing system (X11 in most cases.) You can find the implementation for this function in dlls/winex11.drv/keyboard.c in the function X11DRV_GetAsyncKeyState.
HTH
2007/5/14, James Liggett jrliggett@cox.net:
On Mon, 2007-05-14 at 20:12 +0200, Rafał Miłecki wrote:
I can not find anywhere code writing any value to "pGetAsyncKeyState" nor function that is executed when "pGetAsyncKeyState" is called.
What you're looking at here is a function pointer to the driver that handles input for your windowing system (X11 in most cases.) You can find the implementation for this function in dlls/winex11.drv/keyboard.c in the function X11DRV_GetAsyncKeyState.
That's right but I now I realize that I don't need it at all.
Could someone tell me if there is some easy way to change function:
SHORT WINAPI GetAsyncKeyState(INT nKey) { return USER_Driver->pGetAsyncKeyState( nKey ); }
to make it use USER_Driver of __focused__ wine Window? It need to check key state in _focused_ window to be windows-compatible.