MCPcopy Create free account
hub / github.com/deskflow/deskflow / fakeLocalKey

Method fakeLocalKey

src/lib/platform/MSWindowsScreen.cpp:1678–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676}
1677
1678void MSWindowsScreen::fakeLocalKey(KeyButton button, bool press) const
1679{
1680 INPUT input;
1681 input.type = INPUT_KEYBOARD;
1682 input.ki.wVk = m_keyState->mapButtonToVirtualKey(button);
1683 DWORD pressFlag = press ? KEYEVENTF_EXTENDEDKEY : KEYEVENTF_KEYUP;
1684 input.ki.dwFlags = pressFlag;
1685 input.ki.time = 0;
1686 input.ki.dwExtraInfo = 0;
1687 SendInput(1, &input, sizeof(input));
1688}
1689
1690//
1691// MSWindowsScreen::HotKeyItem

Callers

nothing calls this directly

Calls 1

mapButtonToVirtualKeyMethod · 0.80

Tested by

no test coverage detected