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

@@ -206,5 +206,5 @@ void HelpHandler::setUpScene(osgViewer::ViewerBase* viewer)
void HelpHandler::getUsage(osg::ApplicationUsage& usage) const
{
usage.addKeyboardMouseBinding("h","Onscreen help.");
if (_keyEventTogglesOnScreenHelp) usage.addKeyboardMouseBinding(_keyEventTogglesOnScreenHelp,"Onscreen help.");
}