Changeset 1317 for code/branches/console/src/orxonox/Orxonox.cc
- Timestamp:
- May 18, 2008, 1:28:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/orxonox/Orxonox.cc
r1313 r1317 76 76 #include "tools/Timer.h" 77 77 #include "hud/HUD.h" 78 #include "console/InGameConsole.h"78 //#include "console/InGameConsole.h" 79 79 80 80 // FIXME: is this really file scope? … … 88 88 ConsoleCommand(Orxonox, slomo, AccessLevel::Offline, true).setDefaultValue(0, 1.0); 89 89 ConsoleCommand(Orxonox, setTimeFactor, AccessLevel::Offline, false).setDefaultValue(0, 1.0); 90 90 /* 91 91 class Testconsole : public InputBufferListener 92 92 { … … 125 125 InputBuffer* ib_; 126 126 }; 127 127 */ 128 128 class Calculator 129 129 { … … 421 421 void Orxonox::startRenderLoop() 422 422 { 423 InputBuffer* ib = new InputBuffer(); 424 InputManager::getSingleton().feedInputBuffer(ib); 423 424 // InputBuffer* ib = new InputBuffer(); 425 // InputManager::getSingleton().feedInputBuffer(ib); 425 426 /* 426 427 Testconsole* console = new Testconsole(ib); … … 432 433 ib->registerListener(console, &Testconsole::exit, (char)0x1B, true); 433 434 */ 434 435 /* 435 436 orxonoxConsole_ = new InGameConsole(ib); 436 437 ib->registerListener(orxonoxConsole_, &InGameConsole::listen, true); … … 440 441 ib->registerListener(orxonoxConsole_, &InGameConsole::removeLast, '\b', true); 441 442 ib->registerListener(orxonoxConsole_, &InGameConsole::exit, (char)0x1B, true); 442 443 */ 443 444 // first check whether ogre root object has been created 444 445 if (Ogre::Root::getSingletonPtr() == 0) … … 489 490 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it) 490 491 it->tick((float)evt.timeSinceLastFrame * this->timefactor_); 491 orxonoxConsole_->tick((float)evt.timeSinceLastFrame * this->timefactor_);492 // orxonoxConsole_->tick((float)evt.timeSinceLastFrame * this->timefactor_); 492 493 493 494 // don't forget to call _fireFrameStarted in ogre to make sure
Note: See TracChangeset
for help on using the changeset viewer.