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

Method getKeyboardEventFlags

src/lib/platform/OSXKeyState.cpp:524–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524CGEventFlags OSXKeyState::getKeyboardEventFlags() const
525{
526 // set the event flags for special keys
527 // http://tinyurl.com/pxl742y
528 CGEventFlags modifiers = getModifierStateAsOSXFlags();
529
530 if (!m_capsPressed) {
531 modifiers |= getDeviceDependedFlags();
532 }
533
534 return modifiers;
535}
536
537void OSXKeyState::setKeyboardModifiers(CGKeyCode virtualKey, bool keyDown)
538{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected