Changeset 1637 for code/branches/input/src/orxonox/Orxonox.cc
- Timestamp:
- Jul 20, 2008, 6:49:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/Orxonox.cc
r1629 r1637 58 58 #include "core/Loader.h" 59 59 #include "core/input/InputManager.h" 60 #include "core/input/SimpleInputState.h" 61 #include "core/input/KeyBinder.h" 60 62 #include "core/TclBind.h" 61 63 #include "core/Core.h" … … 135 137 if (this->timer_) 136 138 delete this->timer_; 139 dynamic_cast<SimpleInputState*>(InputManager::getState("game"))->removeAndDestroyAllHandlers(); 137 140 InputManager::destroy(); 138 141 GraphicsEngine::getSingleton().destroy(); … … 290 293 ogre_->getWindowWidth(), ogre_->getWindowHeight(), true, true, true)) 291 294 return false; 295 KeyBinder* keyBinder = new KeyBinder(); 296 InputManager::createSimpleInputState("game", 20)->setHandler(keyBinder); 292 297 293 298 // TOOD: load the GUI here 294 299 // set InputManager to GUI mode 295 InputManager::setInputState(InputManager::IS_GUI);296 300 // TODO: run GUI here 297 301 298 302 // The following lines depend very much on the GUI output, so they're probably misplaced here.. 299 303 300 InputManager::setInputState(InputManager::IS_NONE); 304 keyBinder->loadBindings(); 305 InputManager::requestEnterState("game"); 301 306 302 307 // create Ogre SceneManager … … 325 330 return false; 326 331 } 327 328 InputManager::setInputState(InputManager::IS_NORMAL);329 332 330 333 return startRenderLoop();
Note: See TracChangeset
for help on using the changeset viewer.