|
VGamepad PC
The PC app for the virtual game controller.
|
Keyboard input injector using platform-specific APIs. More...
#include <keyboardSim.hpp>
Public Member Functions | |
| KeyboardInjector () | |
| ~KeyboardInjector () | |
| KeyboardInjector (const KeyboardInjector &)=delete | |
| KeyboardInjector & | operator= (const KeyboardInjector &)=delete |
| KeyboardInjector (KeyboardInjector &&)=delete | |
| KeyboardInjector & | operator= (KeyboardInjector &&)=delete |
| void | pressKey (quint32 nativeKeyCode) |
| void | pressKeyCombo (std::vector< quint32 > nativeKeys) |
| void | keyUp (quint32 nativeKeyCode) |
| void | keyDown (quint32 nativeKeyCode) |
| void | keyComboUp (std::vector< quint32 > nativeKeys) |
| void | keyComboDown (std::vector< quint32 > nativeKeys) |
| void | typeUnicodeString (const QString &str) |
Static Public Attributes | |
| static constexpr int | PRESS_INTERVAL = 10 |
Keyboard input injector using platform-specific APIs.
Platform-specific implementations:
Both platforms use instance methods for consistent interface.
| KeyboardInjector::KeyboardInjector | ( | ) |
| KeyboardInjector::~KeyboardInjector | ( | ) |
|
delete |
|
delete |
| void KeyboardInjector::keyComboDown | ( | std::vector< quint32 > | nativeKeys | ) |
| void KeyboardInjector::keyComboUp | ( | std::vector< quint32 > | nativeKeys | ) |
| void KeyboardInjector::keyDown | ( | quint32 | nativeKeyCode | ) |
| void KeyboardInjector::keyUp | ( | quint32 | nativeKeyCode | ) |
|
delete |
|
delete |
| void KeyboardInjector::pressKey | ( | quint32 | nativeKeyCode | ) |
| void KeyboardInjector::pressKeyCombo | ( | std::vector< quint32 > | nativeKeys | ) |
| void KeyboardInjector::typeUnicodeString | ( | const QString & | str | ) |
|
staticconstexpr |
The time in milliseconds to wait between pressing and releasing a key.