From Marco Jez, added setEventHandled() and getEventHandled() to osgGA::EventVisitor.

This commit is contained in:
Robert Osfield
2005-07-27 09:37:26 +00:00
parent b9a74c87e1
commit 72a59527f5
4 changed files with 28 additions and 11 deletions

View File

@@ -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;
};