HI James, I was not aware of this difference in behavior and don't recall a change that specifically might change this, there were a number of internal changes though, perhaps one of this introduced the different behaviour. When you say you see the same behaviour with the osgkeyboardmouse example could you explain more specifically what to look for in this example, do you have to modify the sources? If so could you provide the changes.
Thanks, Robert. On 3 April 2012 12:25, James Adkison <[email protected]> wrote: > 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 > [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

