How works pGetAsyncKeyState?

Rafał Miłecki zajec5polish at
Tue May 15 08:25:42 CDT 2007

2007/5/14, James Liggett <jrliggett at>:
> 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.

Rafał Miłecki

More information about the wine-devel mailing list