Fixed VisualStudio warning

Added local implementation of asEventHandler()
This commit is contained in:
Robert Osfield 2016-10-07 14:51:39 +01:00
parent 268d89c426
commit 7ba7b13aa0

View File

@ -521,7 +521,10 @@ public:
virtual DrawableCullCallback* asDrawableCullCallback() { return osg::DrawableCullCallback::asDrawableCullCallback(); }
virtual const DrawableCullCallback* asDrawableCullCallback() const { return osg::DrawableCullCallback::asDrawableCullCallback(); }
// use the osgGA::GUIEventHandler implementation of run.
virtual osgGA::EventHandler* asEventHandler() { return osgGA::EventHandler::asEventHandler(); }
virtual const osgGA::EventHandler* asEventHandler() const { return osgGA::EventHandler::asEventHandler(); }
// use the osgGA::GUIEventHandler implementation of run.
virtual bool run(osg::Object* object, osg::Object* data) { return osgGA::GUIEventHandler::run(object, data); }
virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& aa, osg::Object*, osg::NodeVisitor* nv);