Made the FRAME event handling in the various MatrixManipulators return false

from the handle method to prevent frame events from being eaten.
This commit is contained in:
Robert Osfield
2004-02-21 16:57:57 +00:00
parent d2491f6750
commit 11975bd4da
4 changed files with 4 additions and 10 deletions

View File

@@ -65,9 +65,6 @@ bool AnimationPathManipulator::handle(const osgGA::GUIEventAdapter& ea,osgGA::GU
{
if( !valid() ) return false;
us = us;
bool retval = false;
switch( ea.getEventType() )
{
case GUIEventAdapter::FRAME:
@@ -79,8 +76,7 @@ bool AnimationPathManipulator::handle(const osgGA::GUIEventAdapter& ea,osgGA::GU
{
handleFrame( ea.time() );
}
retval = true;
break;
return false;
case GUIEventAdapter::KEYDOWN:
if (ea.getKey()==' ')
{
@@ -108,12 +104,11 @@ bool AnimationPathManipulator::handle(const osgGA::GUIEventAdapter& ea,osgGA::GU
return true;
}
retval = false;
break;
default:
break;
}
return retval;
return false;
}
void AnimationPathManipulator::getUsage(osg::ApplicationUsage& usage) const

View File

@@ -328,7 +328,7 @@ bool DriveManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us)
{
addMouseEvent(ea);
if (calcMovement()) us.requestRedraw();
return true;
return false;
}
case(GUIEventAdapter::RESIZE):

View File

@@ -147,7 +147,7 @@ bool FlightManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us)
case(GUIEventAdapter::FRAME):
addMouseEvent(ea);
if (calcMovement()) us.requestRedraw();
return true;
return false;
case(GUIEventAdapter::RESIZE):
init(ea,us);

View File

@@ -152,7 +152,6 @@ bool TrackballManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter& us
if (_thrown)
{
if (calcMovement()) us.requestRedraw();
return true;
}
return false;
default: