/* Customized event handler An OpenSceneGraph viewer for pyVolution SWW files. copyright (C) 2004-2005 Geoscience Australia */ #include #include #include #include class CustomViewerEventHandler : public osgProducer::ViewerEventHandler { public: CustomViewerEventHandler(osgProducer::OsgCameraGroup* cg); // Get the keyboard and mouse usage of this viewer virtual void getUsage(osg::ApplicationUsage& usage) const; // core code handling key events virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa); protected: };