The code you are looking for is in the configure function of the application.cpp file. The behavior where <esc> causes the config dialog box to close is the default behavior of the config box and is not controlled by the application. I.e. it is the behavior defined by Ogre and/or the OS you are running on (i.e. MFC for windows).
If you don't want to have <esc> cancel the config dialog, you can modify these lines of code:
Code: Select all
if (mRoot->restoreConfig() || mRoot->showConfigDialog())
{
// If returned true, user clicked OK so initialise or valid values were loaded from a previous run
// Here we choose to let the system create a default rendering window by passing 'true'
mWindow = mRoot->initialise(true, "Bots");
return true;
}
else
{
return false;
}
Code: Select all
mRoot->showConfigDialog()
HTH
Saetrum