Hi Robert, Yes, I did make minor changes to the example code. The osgkeyboardmouse changes are identical for both OSG 2.8.2 and 3.0.1 but I attached both patches anyway.
Below I have listed the output from the modified example and add some comments. osgkeyboardmouse example run (2.8.2): // application execution begins frame: mask = 0 frame: mask = 0 frame: mask = 0 frame: mask = 0 // mouse pressed and continuously held down mouse pressed // first frame after mouse press event, this frame event's button mask does indicate the mouse button is pressed frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 // mouse button released mouse release // first frame does indicate the button was released frame: mask = 0 frame: mask = 0 frame: mask = 0 frame: mask = 0 osgkeyboardmouse example run (3.0.1): // application execution begins frame: mask = 0 frame: mask = 0 frame: mask = 0 frame: mask = 0 // mouse pressed and continuously held down mouse pressed // first frame after mouse press event, this frame event's button mask does NOT indicate the mouse button is pressed frame: mask = 0 // the subsequent frame events all DO indicate the mouse button is pressed frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 frame: mask = 1 // mouse is released mouse released // Now similar behavior is seen as with mouse press, first frame state the mouse button is pressed frame: mask = 1 // Subsequent frames state the mouse button is not pressed frame: mask = 0 frame: mask = 0 frame: mask = 0 I hope this helps make things more clear, let me know if anything is still unclear. Thanks, James ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=46773#46773 Attachments: http://forum.openscenegraph.org//files/osgkeyboardmouse_diff_301_513.txt http://forum.openscenegraph.org//files/osgkeyboardmouse_diff_282_108.txt _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

