Introduced new GUIEventAdatper singleton for sharing the current state between

multiple GraphicsWindows, this singleton is accessable via GUIEventEvent::getAccumulatedEventState().

Added use of this new singleton in GraphicsWindow* implementations.

Added WindowSizeHandler to osgkeyboard to help with debugging of event state
between windows.
This commit is contained in:
Robert Osfield
2007-07-13 11:17:41 +00:00
parent 03749d5e34
commit b2535d55c6
6 changed files with 26 additions and 0 deletions

View File

@@ -485,6 +485,10 @@ struct OSXCarbonWindowingSystemInterface : public osg::GraphicsContext::Windowin
void GraphicsWindowCarbon::init()
{
if (_initialized) return;
getEventQueue()->setCurrentEventState(osgGA::GUIEventAdapter::getAccumulatedEventState().get());
_windowTitleHeight = 0;
_closeRequested = false;
_ownsWindow = false;