[osg-users] ScreenCaptureHandler

Robert Osfield robert.osfield at gmail.com
Thu Apr 30 07:19:01 PDT 2015

Hi Gianni,

The code you have written and the the code for ScreenCaptureHandler
looks OK on first review so I can't spot a reason yet for the
behaviour you describe.

What OS are you working with?  What version of the OSG?

Could you modified a standard OSG example to illustrate the problem?


On 30 April 2015 at 14:52, Gianni Ambrosio <g.ambrosio+osg at gmail.com> wrote:
> Hi
> I would like di disable key events for the screen capture handler. Here is the code:
>    screenCaptureHandler = new osgViewer::ScreenCaptureHandler();
>    screenCaptureHandler->setKeyEventTakeScreenShot(0);
>    screenCaptureHandler->setKeyEventToggleContinuousCapture(0);
>    mainView()->addEventHandler(screenCaptureHandler);
> But it seems the setKeyEventToggleContinuousCapture(0) call causes a continuous capturing even if I never call startCapture(). Can anybody explain me why? Looking at the code (i.e. case osgGA::GUIEventAdapter::FRAME of "handle" method) I didn't find an obvious reason.
> Regards,
> Gianni
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63585#63585
> _______________________________________________
> 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