![]() |
VGamepad PC
The Windows app for the virtual game controller.
|
Functions | |
void | addScanCode (INPUT &input, WORD key) |
Adds the scan code to the input structure. | |
void | pressKey (WORD key) |
void | pressKeyCombo (std::vector< WORD > keys) |
void | keyDown (WORD key) |
void | keyUp (WORD key) |
void | keyComboUp (std::vector< WORD > keys) |
void | keyComboDown (std::vector< WORD > keys) |
void | typeUnicodeString (std::wstring str) |
Variables | |
static const std::unordered_set< WORD > | extendedKeys |
|
inline |
Adds the scan code to the input structure.
This is necessary because some apps and games use the scan code to determine the actual location of the key on the keyboard. The difference becomes vital when using non-QWERTY keyboard layouts.
void keyComboDown | ( | std::vector< WORD > | keys | ) |
void keyComboUp | ( | std::vector< WORD > | keys | ) |
void keyDown | ( | WORD | key | ) |
void keyUp | ( | WORD | key | ) |
void pressKey | ( | WORD | key | ) |
void pressKeyCombo | ( | std::vector< WORD > | keys | ) |
void typeUnicodeString | ( | std::wstring | str | ) |
|
static |
Extended key lookup table. Reference: https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#extended-key-flag