From Stephan Huber, "I missed a refactoring of the handling of modifier-keys, so they did not

work on OS X. Attached you'll find the missing implementation for OS X."
This commit is contained in:
Robert Osfield
2008-02-25 16:05:53 +00:00
parent 69d58d6f7c
commit fb1b58b2e2
2 changed files with 56 additions and 38 deletions

View File

@@ -108,6 +108,7 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
bool handleMouseEvent(EventRef theEvent);
bool handleKeyboardEvent(EventRef theEvent);
bool handleModifierKeys(EventRef theEvent);
/** WindowData is used to pass in the Carbon window handle attached the GraphicsContext::Traits structure. */
class WindowData : public osg::Referenced
@@ -161,9 +162,11 @@ class GraphicsWindowCarbon : public osgViewer::GraphicsWindow
private:
/// computes the window attributes
WindowAttributes computeWindowAttributes(bool useWindowDecoration, bool supportsResize);
void handleModifierKey(UInt32 modifierKey, UInt32 modifierMask, osgGA::GUIEventAdapter::KeySymbol keySymbol);
bool _closeRequested;
bool _closeRequested;
UInt32 _lastModifierKeys;
};
}