|
我想屏蔽'f'键全屏处理,
class CCameraHandler : public osgGA::MatrixManipulator
{
......
virtual bool handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us);
void _keyDown(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
void _keyUp(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);
}
bool CCameraHandler : :handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us)
{
...
case(GUIEventAdapter::KEYUP):
{
_keyUp(ea, us);
return false;
}
case(GUIEventAdapter::KEYDOWN):
{
_keyDown(ea, us);
return false;
}
...
}
_keyUp,_keyDown中重新写'f'键的处理,可是每次处理完后,还要调用全屏处理,怎么能使程序不全屏处理呢 |
|