| 522 | } |
| 523 | |
| 524 | CGEventFlags 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 | |
| 537 | void OSXKeyState::setKeyboardModifiers(CGKeyCode virtualKey, bool keyDown) |
| 538 | { |
nothing calls this directly
no outgoing calls
no test coverage detected