bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
{
osgViewer::Viewer* viewer = dynamic_cast<osgViewer::Viewer*>(&aa);
}
bool ControlMan::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa) { osgViewer::Viewer* viewer = dynamic_cast<osgViewer::Viewer*>(&aa);//Pick switch(ea.getEventType()) { case osgGA::GUIEventAdapter::KEYDOWN: { switch(ea.getKey()) { case ‘w‘: {return true; } case ‘s‘: { return true; } } } } return false; }
osg事件处理器osgGA::GUIEventHandler handle,布布扣,bubuko.com
osg事件处理器osgGA::GUIEventHandler handle
原文:http://www.cnblogs.com/coolbear/p/3754644.html