From Marco Jez, added setEventHandled() and getEventHandled() to osgGA::EventVisitor.
This commit is contained in:
@@ -63,6 +63,10 @@ class OSGGA_EXPORT EventVisitor : public osg::NodeVisitor
|
||||
void addEvent(GUIEventAdapter* event);
|
||||
|
||||
void removeEvent(GUIEventAdapter* event);
|
||||
|
||||
bool getEventHandled() const { return _handled; }
|
||||
|
||||
void setEventHandled(bool handled) { _handled = handled; }
|
||||
|
||||
|
||||
virtual void reset();
|
||||
@@ -134,6 +138,7 @@ class OSGGA_EXPORT EventVisitor : public osg::NodeVisitor
|
||||
|
||||
osgGA::GUIActionAdapter* _actionAdapter;
|
||||
EventList _events;
|
||||
bool _handled;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user