VGamepad PC
The Windows app for the virtual game controller.
Loading...
Searching...
No Matches
keyboardSim.hpp File Reference

Simulates keyboard input in Windows. More...

#include <windows.h>
#include <string>
#include <vector>
Include dependency graph for keyboardSim.hpp:
This graph shows which files directly or indirectly include this file:

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

void pressKey (WORD key)
 
void pressKeyCombo (std::vector< WORD > keys)
 
void keyUp (WORD key)
 
void keyDown (WORD key)
 
void keyComboUp (std::vector< WORD > keys)
 
void keyComboDown (std::vector< WORD > keys)
 
void typeUnicodeString (std::wstring str)
 

Variables

constexpr int PRESS_INTERVAL = 10
 

Detailed Description

Simulates keyboard input in Windows.

Note
Do not include this file directly. Use simulate.hpp instead.

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Function Documentation

◆ keyComboDown()

void keyComboDown ( std::vector< WORD > keys)

◆ keyComboUp()

void keyComboUp ( std::vector< WORD > keys)

◆ keyDown()

void keyDown ( WORD key)

◆ keyUp()

void keyUp ( WORD key)

◆ pressKey()

void pressKey ( WORD key)

◆ pressKeyCombo()

void pressKeyCombo ( std::vector< WORD > keys)

◆ typeUnicodeString()

void typeUnicodeString ( std::wstring str)

Variable Documentation

◆ PRESS_INTERVAL

int PRESS_INTERVAL = 10
constexpr

The time in milliseconds to wait between pressing and releasing a key.