#4288 removed #if 0 blocks
This commit is contained in:
parent
9015f6a328
commit
23a7e5c05f
2 changed files with 2 additions and 19 deletions
|
|
@ -275,16 +275,6 @@ MSWindowsDesks::getCursorPos(SInt32& x, SInt32& y) const
|
||||||
void
|
void
|
||||||
MSWindowsDesks::fakeKeyEvent(WORD virtualKey, WORD scanCode, DWORD flags, bool /*isAutoRepeat*/) const
|
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));
|
sendMessage(SYNERGY_MSG_FAKE_KEY, flags, MAKELPARAM(scanCode, virtualKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1216,16 +1216,9 @@ MSWindowsKeyState::getKeyMap(synergy::KeyMap& keyMap)
|
||||||
item.m_required |= KeyModifierControl;
|
item.m_required |= KeyModifierControl;
|
||||||
item.m_sensitive |= KeyModifierControl;
|
item.m_sensitive |= KeyModifierControl;
|
||||||
break;
|
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);
|
addKeyEntry(keyMap, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue