- Timestamp:
- Apr 16, 2010, 12:50:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/src/orxonox/gamestates/GSMainMenu.cc
r6739 r6741 31 31 #include <OgreSceneManager.h> 32 32 33 #include "core/input/InputManager.h"34 #include "core/input/InputState.h"35 33 #include "core/input/KeyBinderManager.h" 36 34 #include "core/Game.h" … … 49 47 GSMainMenu::GSMainMenu(const GameStateInfo& info) 50 48 : GameState(info) 51 , inputState_(0)52 49 { 53 50 RegisterRootObject(GSMainMenu); 54 inputState_ = InputManager::getInstance().createInputState("mainMenu");55 inputState_->setMouseExclusive(TriBool::False);56 inputState_->setHandler(&GUIManager::getInstance());57 inputState_->setKeyHandler(KeyBinderManager::getInstance().getDefaultAsHandler());58 inputState_->setJoyStickHandler(&InputHandler::EMPTY);59 51 60 52 // create an empty Scene … … 75 67 if (GameMode::playsSound()) 76 68 this->ambient_->destroy(); 77 78 InputManager::getInstance().destroyState("mainMenu");79 69 80 70 this->scene_->getSceneManager()->destroyCamera(this->camera_); … … 100 90 101 91 KeyBinderManager::getInstance().setToDefault(); 102 //InputManager::getInstance().enterState("mainMenu");103 92 104 93 this->setConfigValues(); … … 117 106 this->ambient_->stop(); 118 107 } 119 120 //InputManager::getInstance().leaveState("mainMenu");121 108 122 109 GUIManager::getInstance().setCamera(0);
Note: See TracChangeset
for help on using the changeset viewer.