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? Cheers, Robert On 30 April 2015 at 14:52, Gianni Ambrosio <[email protected]> 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 > [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

