MCPcopy Create free account
hub / github.com/Tylemagne/Gopher360 / inputKeyboard

Function inputKeyboard

Windows/Gopher/Gopher/Gopher.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "ConfigFile.h"
3
4void inputKeyboard(WORD cmd, DWORD flag)
5{
6 INPUT input;
7 input.type = INPUT_KEYBOARD;
8 input.ki.wScan = 0;
9 input.ki.time = 0;
10 input.ki.dwExtraInfo = 0;
11 input.ki.wVk = cmd;
12 input.ki.dwFlags = flag;
13 SendInput(1, &input, sizeof(INPUT));
14}
15
16void inputKeyboardDown(WORD cmd)
17{

Callers 2

inputKeyboardDownFunction · 0.85
inputKeyboardUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected