[osg-submissions] Bug Fix: TerrainManipulator
Adrian Egli
3dhelp at gmail.com
Thu Jan 10 23:58:15 PST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080111/8165a6d4/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TerrainManipulator.cpp
Type: text/x-c++src
Size: 21180 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080111/8165a6d4/attachment-0001.cpp
More information about the osg-submissions
mailing list