标签:style c class blog code java
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
标签:style c class blog code java
原文地址:http://www.cnblogs.com/coolbear/p/3754644.html