[osg-submissions] Bug Fix: TerrainManipulator
Robert Osfield
robert.osfield at gmail.com
Fri Jan 11 03:33:23 PST 2008
Thanks Adrian, change merged and submitted to SVN.
On Jan 11, 2008 7:58 AM, Adrian Egli <3dhelp at gmail.com> wrote:
>
> bool TerrainManipulator::handle(const GUIEventAdapter& ea,GUIActionAdapter&
> us)
> {
>
> switch(ea.getEventType())
> {
> case(GUIEventAdapter::FRAME):
> if (_thrown)
> {
> if (calcMovement()) us.requestRedraw();
> }
> return false;
> default:
> break;
> }
>
>
> if (ea.getHandled()) return false; <=== IF HANDLED, do nothing: ignor
> event
>
>
>
>
>
>
>
>
> ****************************
>
> Looking for: getHandled
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\DriveManipulator.cpp(322):
> if (ea.getHandled()) return false;
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\FlightManipulator.cpp(109):
> if ( ea.getHandled()) return false;
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\KeySwitchMatrixManipulator.cpp(167):
> if (!ea.getHandled() && ea.getEventType()==GUIEventAdapter::KEYDOWN)
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\StateSetManipulator.cpp(73):
> if ( ea.getHandled()) return false;
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\TrackballManipulator.cpp(91):
> if (ea.getHandled()) return false;
> C:\dev\OpenSceneGraphSVN\OpenSceneGraph\src\osgGA\UFOManipulator.cpp(209):
> if ( ea.getHandled()) return false;
>
> --
> ********************************************
> Adrian Egli
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
More information about the osg-submissions
mailing list