#4288 removed #if 0 blocks

This commit is contained in:
Jamie Newbon 2020-01-11 01:24:22 +00:00
parent 9015f6a328
commit 23a7e5c05f
2 changed files with 2 additions and 19 deletions

View file

@ -275,16 +275,6 @@ MSWindowsDesks::getCursorPos(SInt32& x, SInt32& y) const
void
MSWindowsDesks::fakeKeyEvent(WORD virtualKey, WORD scanCode, DWORD flags, bool /*isAutoRepeat*/) const
{
#if 0
// synthesize event
DWORD flags = 0;
if (((button & 0x100u) != 0)) {
flags |= KEYEVENTF_EXTENDEDKEY;
}
if (!press) {
flags |= KEYEVENTF_KEYUP;
}
#endif
sendMessage(SYNERGY_MSG_FAKE_KEY, flags, MAKELPARAM(scanCode, virtualKey));
}

View file

@ -1216,16 +1216,9 @@ MSWindowsKeyState::getKeyMap(synergy::KeyMap& keyMap)
item.m_required |= KeyModifierControl;
item.m_sensitive |= KeyModifierControl;
break;
#if 0
case VK_SNAPSHOT:
item.m_sensitive |= KeyModifierAlt;
if ((i & 0x100u) == 0) {
// non-extended snapshot key requires alt
item.m_required |= KeyModifierAlt;
}
break;
}
#endif
addKeyEntry(keyMap, item);
}
}