- adjusted ? toggle key to always allow toggling of FPS (whether or not debug in enabled)

This commit is contained in:
Mark Vejvoda
2010-07-06 15:11:10 +00:00
parent aecc708942
commit b0b775dc49
7 changed files with 30 additions and 19 deletions

View File

@@ -271,6 +271,13 @@ void MainWindow::eventKeyDown(char key){
}
}
Config &configKeys = Config::getInstance(std::pair<ConfigType,ConfigType>(cfgMainKeys,cfgUserKeys));
if(key == configKeys.getCharKey("HotKeyShowDebug")) {
Renderer &renderer= Renderer::getInstance();
bool showDebugUI = renderer.getShowDebugUI();
renderer.setShowDebugUI(!showDebugUI);
}
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
}