Back to Adaptive Vision Library website
You are here: Start » Function Reference » User Input » GetKeyboardKeys
Returns virtual key codes of the pressed keys or NULL if no key was pressed.
Syntax
void avl::GetKeyboardKeys ( const bool inNumKeypad, const bool inAlpha, const bool inSpecial, const bool inFKeys, atl::Array<int>& outKeyCodes )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inNumKeypad | const bool | True | Determines whether to analyze keys from numeric keypad | |
inAlpha | const bool | True | Determines whether to analyze keys from alphanumeric keypad | |
inSpecial | const bool | Determines whether to analyze special keys | ||
inFKeys | const bool | Determines whether to analyze functional keys (F1 to F24) | ||
outKeyCodes | Array<int>& | Virtual key codes of the pressed keys. See documentation for a complete table |
Remarks
For complete list of virtual key codes, please follow the link below:
https://docs.microsoft.com/windows/desktop/inputdev/virtual-key-codes
https://docs.microsoft.com/windows/desktop/inputdev/virtual-key-codes
See Also
- GetKeyboardKeyState – Checks if the specified keyboard key is down and if it is toggled.