[osg-users] Problem with osg::Dragger::handle

Robert Osfield robert.osfield at gmail.com
Tue Jun 28 07:14:48 PDT 2016


Hi Dmitriy,

I'm not clear on what the bug you are seeing is as you don't explain
what actually going wrong just whatever it is might be a bug.

Can you reproduce the problem with the osgmanipulator example?

Could you explain what to look for when the problem appears and the
exact steps we should use to reproduce it?

Robert.



On 28 June 2016 at 09:27, Dmitriy Ogaltsev <demon.deadiablo at gmail.com> wrote:
> Hi,
>
> I have bug in draggers with click left and right mouse buttons at the same time. I'm using OSG version 3.4.0.
> Please look function handle in Dragger.cpp (I can't paste the link).
>
> We have two flags (activationPermitted and _draggerActive).
> When we press left mouse button, then dragger will set _activationMouseButtonMask and _draggerActive to true.
> Then we press right mouse button -> Condition (activationPermitted || _draggerActive) is true -> Processing PUSH for RMB -> update all states for dragger.
> With this logic of dragger is not working correctly.
>
> And after release right mouse button - the following code will be executed:
>
> Code:
>
> if (_draggerActive && ea.getEventType() == osgGA::GUIEventAdapter::RELEASE)
> {
> setDraggerActive(false);
> _pointer.reset();
> }
>
>
>
> Dragger will set _draggerActive to false, but left mouse button is still pressed.
>
> Thank you!
>
> Cheers,
> Dmitriy
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67871#67871
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list