| 499 | } |
| 500 | |
| 501 | CGEventFlags 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 | |
| 524 | CGEventFlags OSXKeyState::getKeyboardEventFlags() const |
| 525 | { |
nothing calls this directly
no outgoing calls
no test coverage detected