Changeset 1024 for code/trunk/src/orxonox/Orxonox.cc
- Timestamp:
- Apr 10, 2008, 5:35:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Orxonox.cc
r1021 r1024 50 50 //misc 51 51 //#include "util/Sleep.h" 52 #include "util/ArgReader.h" 52 53 53 54 // audio … … 61 62 62 63 // objects 63 #include "core/ArgReader.h"64 64 #include "core/Debug.h" 65 65 #include "core/Factory.h" … … 70 70 #include "objects/weapon/BulletManager.h" 71 71 72 #include " InputHandler.h"72 #include "core/InputManager.h" 73 73 74 74 #include "Orxonox.h" … … 108 108 delete this->orxonoxHUD_; 109 109 Loader::close(); 110 Input Handler::destroy();110 InputManager::destroySingleton(); 111 111 if (this->auMan_) 112 112 delete this->auMan_; … … 147 147 singletonRef_s = new Orxonox(); 148 148 return singletonRef_s; 149 //static Orxonox theOnlyInstance;150 //return &theOnlyInstance;151 149 } 152 150 … … 154 152 @brief Destroys the Orxonox singleton. 155 153 */ 156 void Orxonox::destroy ()154 void Orxonox::destroySingleton() 157 155 { 158 156 if (singletonRef_s) … … 174 172 std::string mode; 175 173 176 ArgReader ar = ArgReader(argc, argv);174 ArgReader ar(argc, argv); 177 175 ar.checkArgument("mode", mode, false); 178 176 ar.checkArgument("data", this->dataPath_, false); … … 327 325 void Orxonox::setupInputSystem() 328 326 { 329 inputHandler_ = Input Handler::getSingleton();327 inputHandler_ = InputManager::getSingleton(); 330 328 if (!inputHandler_->initialise(ogre_->getWindowHandle(), 331 329 ogre_->getWindowWidth(), ogre_->getWindowHeight())) 332 330 abortImmediate(); 331 inputHandler_->setInputMode(IM_INGAME); 333 332 } 334 333
Note: See TracChangeset
for help on using the changeset viewer.