Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 5:35:49 PM (16 years ago)
Author:
rgrieder
Message:

merged input back into trunk
note: I have created an asylum with obsolete code, please check the files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Orxonox.cc

    r1021 r1024  
    5050//misc
    5151//#include "util/Sleep.h"
     52#include "util/ArgReader.h"
    5253
    5354// audio
     
    6162
    6263// objects
    63 #include "core/ArgReader.h"
    6464#include "core/Debug.h"
    6565#include "core/Factory.h"
     
    7070#include "objects/weapon/BulletManager.h"
    7171
    72 #include "InputHandler.h"
     72#include "core/InputManager.h"
    7373
    7474#include "Orxonox.h"
     
    108108      delete this->orxonoxHUD_;
    109109    Loader::close();
    110     InputHandler::destroy();
     110    InputManager::destroySingleton();
    111111    if (this->auMan_)
    112112      delete this->auMan_;
     
    147147      singletonRef_s = new Orxonox();
    148148    return singletonRef_s;
    149     //static Orxonox theOnlyInstance;
    150     //return &theOnlyInstance;
    151149  }
    152150
     
    154152    @brief Destroys the Orxonox singleton.
    155153  */
    156   void Orxonox::destroy()
     154  void Orxonox::destroySingleton()
    157155  {
    158156    if (singletonRef_s)
     
    174172    std::string mode;
    175173
    176     ArgReader ar = ArgReader(argc, argv);
     174    ArgReader ar(argc, argv);
    177175    ar.checkArgument("mode", mode, false);
    178176    ar.checkArgument("data", this->dataPath_, false);
     
    327325  void Orxonox::setupInputSystem()
    328326  {
    329     inputHandler_ = InputHandler::getSingleton();
     327    inputHandler_ = InputManager::getSingleton();
    330328    if (!inputHandler_->initialise(ogre_->getWindowHandle(),
    331329          ogre_->getWindowWidth(), ogre_->getWindowHeight()))
    332330      abortImmediate();
     331    inputHandler_->setInputMode(IM_INGAME);
    333332  }
    334333
Note: See TracChangeset for help on using the changeset viewer.