Hi, I am working on a project which just upgraded from OSG 2.8.2 to OSG 3.0.1 and some of our code broke during the upgrade. It was assumed that we had done something wrong and I started debugging and found the following change in behavior.
The following example shows the the observed behavior of our pick handler which sub-classes osgGA::GUIEventHandler and implements the handle(const osgGA::GUIEventAdapter &, osgGA::GUIActionAdapter &) method. OSG 2.8.2 - Mouse press event is detected (left mouse button is pressed and not released) - Frame event is detected and the retrieved button mask (i.e. osgGA::GUIEventAdapter::getButtonMask()) does indicate the left mouse button is pressed OSG 3.0.1 - Mouse press event is detected (again left mouse button is press and not release) - Frame event is detected and the retrieved button mask does NOT indicate the left mouse button is pressed ** However, the second frame event after the mouse press event and all subsequent frame events do have button masks which indicate the left mouse button is pressed This same behavior was also observed in the OSG 3.0.1 osgkeyboardmouse example. So my question is, was the change in behavior (as described above) intended/expected or a bug? Thank you in advance, James[/b] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46765#46765 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org