MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / AddScanCode

Method AddScanCode

src/InputSender.h:41–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 list.push_back(cur);
40 }
41 void AddScanCode(const TKeyBaseInfo& key, KeyState keyState = KEY_STATE_DOWN)
42 {
43 if (key.is_shift) {
44 Add(VK_LSHIFT, keyState);
45 }
46
47 if (key.scan_code.scan == 0) {
48 Add(key.vk_code, keyState);
49 }
50 else {
51 Add(0, keyState, key.scan_code);
52 }
53 }
54 void AddPressVk(TKeyCode vk, int num = 1) {
55 for (int i = 0; i < num; i++) {
56 Add(vk, KEY_STATE_DOWN);

Callers

nothing calls this directly

Calls 1

AddFunction · 0.85

Tested by

no test coverage detected