How to disable the debugger?

balizeiro

21-08-2007 13:06:39

How can I disable the debugger? Because I don't want the user to be able to press F3 during execution to see the lines

ProfesorX

21-08-2007 18:29:40

Make your own FrameListener instead of using BasicFrameListener, or delete the following lines in BasicFrameListener::frameStarted and recompile OgreNewt


if (mInputDevice->isKeyDown(Ogre::KC_F3))
{
Debugger::getSingleton().showLines( m_World );
}
else
{
Debugger::getSingleton().hideLines();
}