Reference

GetAsyncKeyState(3w)

GetAsyncKeyState32 (USER32.207)

NAME

GetAsyncKeyState - GetAsyncKeyState32 (USER32.207)

SYNOPSIS

WORD GetAsyncKeyState(INT32 nKey);

DESCRIPTION

Determine if a key is or was pressed. Retval has high-order bit set to 1 if currently pressed, low-order bit set to 1 if key has been pressed.

This uses the variable AsyncMouseButtonsStates and AsyncKeyStateTable (set in event.c) which have the mouse button number or key number (whichever is applicable) set to true if the mouse or key had been depressed since the last call to GetAsyncKeyState.

SEE ALSO

GetKeyState(3w), GetKeyboardState(3w), SetKeyboardState(3w), TranslateAccelerator(3w), OemKeyScan(3w), VkKeyScanA(3w), VkKeyScanW(3w), GetKeyboardType(3w), MapVirtualKeyA(3w), GetKBCodePage(3w), GetKeyboardLayoutNameA(3w), GetKeyboardLayoutNameW(3w), GetKeyNameTextA(3w), GetKeyNameTextW(3w), ToAscii(3w), GetKeyboardLayout(3w), GetKeyboardLayoutList(3w), RegisterHotKey(3w), UnregisterHotKey(3w)