[osg-users] ScreenCaptureHandler

Gianni Ambrosio g.ambrosio+osg at gmail.com
Thu Apr 30 06:52:41 PDT 2015


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








More information about the osg-users mailing list