Hi Peterakos, There isn't any way a third party will be able to diagnose the problem with your code with such a tiny extract of code. The best I can suggest is develop your own skills of hunting down and fixing bugs. Using a debug to see the flow of control, or add debug message that output results to the console so you can learn about what is happening. With looking things more closely the problem in your code should jump out.
Robert. On 19 February 2013 01:32, Peterakos <[email protected]> wrote: > Hello. > > I try to make my own camera manipulator in which the push events with > X lower than the half of the window will be ignored. > > I created a class, which derives trackball manipulator. > Here is the handle method > > virtual bool handle( const osgGA::GUIEventAdapter& ea, > osgGA::GUIActionAdapter& us ) { > if (ea.getEventType() == osgGA::GUIEventAdapter::PUSH && > isInBounds(ea.getX(), ea.getY())) { > return true; > } > return osgGA::TrackballManipulator::handle(ea, us); > } > > Even though I return true (which means i dont want further handle), it > keeps taking into account the event. > > Is there anything wrong with the code above ? > > thnx. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

