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

Method getDeviceDependedFlags

src/lib/platform/OSXKeyState.cpp:501–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501CGEventFlags OSXKeyState::getDeviceDependedFlags() const
502{
503 CGEventFlags modifiers = 0;
504
505 if (m_shiftPressed) {
506 modifiers |= NX_DEVICELSHIFTKEYMASK;
507 }
508
509 if (m_controlPressed) {
510 modifiers |= NX_DEVICELCTLKEYMASK;
511 }
512
513 if (m_altPressed) {
514 modifiers |= NX_DEVICELALTKEYMASK;
515 }
516
517 if (m_superPressed) {
518 modifiers |= NX_DEVICELCMDKEYMASK;
519 }
520
521 return modifiers;
522}
523
524CGEventFlags OSXKeyState::getKeyboardEventFlags() const
525{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected