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:
@@ -254,6 +254,13 @@ public:
|
||||
|
||||
META_Object(osgGA, GUIEventAdapter);
|
||||
|
||||
|
||||
/** Get the accumulated event state singleton.
|
||||
* Typically all EventQueue will share this single GUIEventAdapter object for tracking
|
||||
* the mouse position, keyboard and mouse masks. */
|
||||
static osg::ref_ptr<GUIEventAdapter>& getAccumulatedEventState();
|
||||
|
||||
|
||||
/** Set whether this event has been handled by an event handler or not.*/
|
||||
void setHandled(bool handled) { _handled = handled; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user