Added support for scaling widgets via the scoll wheel.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14431 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-09-02 09:14:08 +00:00
parent 90c787a56a
commit 30f4568f7b
2 changed files with 49 additions and 17 deletions

View File

@@ -128,7 +128,7 @@ void Widget::updateFocus(osg::NodeVisitor& nv)
}
}
if (numButtonsPressed!=0)
if (_hasEventFocus && (ea->getEventType()==osgGA::GUIEventAdapter::PUSH || ea->getEventType()==osgGA::GUIEventAdapter::SCROLL) )
{
osgViewer::View* view = dynamic_cast<osgViewer::View*>(aa);
if (view && view->getCameraManipulator())