Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2008, 1:28:08 AM (17 years ago)
Author:
landauf
Message:

changed some parts of InGameConsole to make it work with Shell, but I couldn't test it yet as there seems to be a bug in InputBuffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/orxonox/Orxonox.cc

    r1313 r1317  
    7676#include "tools/Timer.h"
    7777#include "hud/HUD.h"
    78 #include "console/InGameConsole.h"
     78//#include "console/InGameConsole.h"
    7979
    8080// FIXME: is this really file scope?
     
    8888  ConsoleCommand(Orxonox, slomo, AccessLevel::Offline, true).setDefaultValue(0, 1.0);
    8989  ConsoleCommand(Orxonox, setTimeFactor, AccessLevel::Offline, false).setDefaultValue(0, 1.0);
    90 
     90/*
    9191  class Testconsole : public InputBufferListener
    9292  {
     
    125125      InputBuffer* ib_;
    126126  };
    127 
     127*/
    128128  class Calculator
    129129  {
     
    421421  void Orxonox::startRenderLoop()
    422422  {
    423     InputBuffer* ib = new InputBuffer();
    424     InputManager::getSingleton().feedInputBuffer(ib);
     423
     424//    InputBuffer* ib = new InputBuffer();
     425//    InputManager::getSingleton().feedInputBuffer(ib);
    425426    /*
    426427    Testconsole* console = new Testconsole(ib);
     
    432433    ib->registerListener(console, &Testconsole::exit, (char)0x1B, true);
    433434    */
    434 
     435    /*
    435436    orxonoxConsole_ = new InGameConsole(ib);
    436437    ib->registerListener(orxonoxConsole_, &InGameConsole::listen, true);
     
    440441    ib->registerListener(orxonoxConsole_, &InGameConsole::removeLast, '\b', true);
    441442    ib->registerListener(orxonoxConsole_, &InGameConsole::exit, (char)0x1B, true);
    442 
     443    */
    443444    // first check whether ogre root object has been created
    444445    if (Ogre::Root::getSingletonPtr() == 0)
     
    489490      for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it)
    490491        it->tick((float)evt.timeSinceLastFrame * this->timefactor_);
    491       orxonoxConsole_->tick((float)evt.timeSinceLastFrame * this->timefactor_);
     492//      orxonoxConsole_->tick((float)evt.timeSinceLastFrame * this->timefactor_);
    492493
    493494      // don't forget to call _fireFrameStarted in ogre to make sure
Note: See TracChangeset for help on using the changeset viewer.