<div>Found out!</div><div><br></div><div>Just needed to change the performMovement() function of the derived class, and add an extra else in the end:</div><div><br></div><div>    if( buttonMask == osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON )<br>    {<br>        return performMovementLeftMouseButton( eventTimeDelta, dx, dy );<br>    }<br>    else if( ( buttonMask == osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON ) ||<br>             ( buttonMask == osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON && modKeyMask & osgGA::GUIEventAdapter::MODKEY_CTRL ) ||<br>             ( buttonMask == (osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON | osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON) ) )<br>    {<br>        return performMovementMiddleMouseButton( eventTimeDelta, dx, dy );<br>    }<br>    else if( buttonMask == osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON )<br>    {<br>        return performMovementRightMouseButton( eventTimeDelta, dx, dy );<br>    }<br>    else<br>    {<br>        return performMovementLeftMouseButton( eventTimeDelta, dx, dy ); // <-- HERE<br>    }<br><br></div><br>On Monday, May 11, 2020 at 4:39:28 AM UTC-3, Rodrigo Dias wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>I'm trying to adapt camera movement from FirstPersonManipulator or StandardManipulator. I've found an example <a href="https://github.com/SunilRao01/OSGFirstPersonController" target="_blank" rel="nofollow" onmousedown="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSunilRao01%2FOSGFirstPersonController\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEKYUA1Foc_wQo1T-YQLXSGTqwe4A';return true;" onclick="this.href='https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FSunilRao01%2FOSGFirstPersonController\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEKYUA1Foc_wQo1T-YQLXSGTqwe4A';return true;">here</a> and was able to compile it.</div><div><br></div><div>However, I can't seem to find how to move the camera when there's no mouse button pressed. How do I do that?<br></div></div></blockquote>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/1baaf973-7699-4b8c-92b6-ec8ec3bee6c2%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/1baaf973-7699-4b8c-92b6-ec8ec3bee6c2%40googlegroups.com</a>.<br />