From Rafa Giatan and Robert Osfield, added support for User defined events, by adding
UserData to Events.
This commit is contained in:
@@ -181,6 +181,13 @@ class OSGGA_EXPORT EventQueue : public osg::Referenced
|
||||
GUIEventAdapter* getCurrentEventState() { return _accumulateEventState.get(); }
|
||||
const GUIEventAdapter* getCurrentEventState() const { return _accumulateEventState.get(); }
|
||||
|
||||
/** Method for adapting user defined events */
|
||||
void userEvent(osg::Referenced* userEventData) { userEvent(userEventData, getTime()); }
|
||||
|
||||
/** Method for adapting user defined events with specified event time */
|
||||
void userEvent(osg::Referenced* userEventData, double time);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~EventQueue();
|
||||
|
||||
Reference in New Issue
Block a user