Moved the expansion of the key codes into ApplicationUsage so that help is only generated for non zero keycodes.

This commit is contained in:
Robert Osfield
2012-12-05 10:13:51 +00:00
parent ea00708026
commit 5a88734598
6 changed files with 46 additions and 40 deletions

View File

@@ -11,8 +11,6 @@
* OpenSceneGraph Public License for more details.
*/
#include <sstream>
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
@@ -851,17 +849,8 @@ void ScreenCaptureHandler::stopCapture()
/** Get the keyboard and mouse usage of this manipulator.*/
void ScreenCaptureHandler::getUsage(osg::ApplicationUsage& usage) const
{
{
std::ostringstream ostr;
ostr<<char(_keyEventTakeScreenShot);
usage.addKeyboardMouseBinding(ostr.str(),"Take screenshot.");
}
{
std::ostringstream ostr;
ostr<<char(_keyEventToggleContinuousCapture);
usage.addKeyboardMouseBinding(ostr.str(),"Toggle continuous screen capture.");
}
usage.addKeyboardMouseBinding(_keyEventTakeScreenShot,"Take screenshot.");
usage.addKeyboardMouseBinding(_keyEventToggleContinuousCapture,"Toggle continuous screen capture.");
}
}