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:
@@ -15,6 +15,13 @@
|
||||
|
||||
using namespace osgGA;
|
||||
|
||||
|
||||
osg::ref_ptr<GUIEventAdapter>& GUIEventAdapter::getAccumulatedEventState()
|
||||
{
|
||||
static osg::ref_ptr<GUIEventAdapter> s_eventState = new GUIEventAdapter;
|
||||
return s_eventState;
|
||||
}
|
||||
|
||||
GUIEventAdapter::GUIEventAdapter():
|
||||
_handled(false),
|
||||
_eventType(NONE),
|
||||
|
||||
Reference in New Issue
Block a user