Back to FabImage Library website
You are here: Start » Function Reference » System » User Input » GetKeyboardKeys
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Returns virtual key codes of the pressed keys or NULL if no key was pressed.
Syntax
void fil::GetKeyboardKeys ( const bool inNumKeypad, const bool inAlpha, const bool inSpecial, const bool inFKeys, ftl::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.