Changeset 3274 for code/branches/core4/src/orxonox/gamestates
- Timestamp:
- Jul 12, 2009, 4:12:04 PM (15 years ago)
- Location:
- code/branches/core4/src/orxonox/gamestates
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/gamestates/GSGraphics.cc
r3270 r3274 38 38 #include <OgreRenderWindow.h> 39 39 40 #include "util/Convert.h" 40 41 #include "core/ConfigValueIncludes.h" 41 42 #include "core/Clock.h" 43 #include "core/CommandExecutor.h" 42 44 #include "core/ConsoleCommand.h" 43 45 #include "core/Core.h" … … 47 49 #include "core/input/InputManager.h" 48 50 #include "core/input/KeyBinder.h" 49 #include "core/input/ SimpleInputState.h"51 #include "core/input/InputState.h" 50 52 #include "core/Loader.h" 51 53 #include "core/XMLFile.h" … … 125 127 126 128 // load master key bindings 127 masterInputState_ = InputManager::getInstance().createInputState <SimpleInputState>("master", true);129 masterInputState_ = InputManager::getInstance().createInputState("master", true); 128 130 masterKeyBinder_ = new KeyBinder(); 129 131 masterKeyBinder_->loadBindings("masterKeybindings.ini"); … … 244 246 { 245 247 // OIS needs this under linux even if we only use relative input measurement. 246 if (this->inputManager_)247 this->inputManager_->setWindowExtents(newWidth, newHeight);248 // HACK: 249 CommandExecutor::execute("setWindowExtents_s " + multi_cast<std::string>(newWidth) + " " + multi_cast<std::string>(newHeight)); 248 250 } 249 251 -
code/branches/core4/src/orxonox/gamestates/GSGraphics.h
r3243 r3274 75 75 76 76 KeyBinder* masterKeyBinder_; //!< Key binder for master key bindings 77 SimpleInputState*masterInputState_; //!< Special input state for master input77 InputState* masterInputState_; //!< Special input state for master input 78 78 XMLFile* debugOverlay_; 79 79 ConsoleCommand* ccToggleGUI_; //!< Console command to toggle GUI -
code/branches/core4/src/orxonox/gamestates/GSLevel.cc
r3249 r3274 31 31 32 32 #include "core/input/InputManager.h" 33 #include "core/input/ SimpleInputState.h"33 #include "core/input/InputState.h" 34 34 #include "core/input/KeyBinder.h" 35 35 #include "core/Clock.h" … … 90 90 if (GameMode::showsGraphics()) 91 91 { 92 gameInputState_ = InputManager::getInstance().createInputState <SimpleInputState>("game");92 gameInputState_ = InputManager::getInstance().createInputState("game"); 93 93 keyBinder_ = new KeyBinder(); 94 94 keyBinder_->loadBindings("keybindings.ini"); 95 95 gameInputState_->setHandler(keyBinder_); 96 96 97 guiMouseOnlyInputState_ = InputManager::getInstance().createInputState <SimpleInputState>("guiMouseOnly");97 guiMouseOnlyInputState_ = InputManager::getInstance().createInputState("guiMouseOnly"); 98 98 guiMouseOnlyInputState_->setMouseHandler(GUIManager::getInstancePtr()); 99 99 100 guiKeysOnlyInputState_ = InputManager::getInstance().createInputState <SimpleInputState>("guiKeysOnly");100 guiKeysOnlyInputState_ = InputManager::getInstance().createInputState("guiKeysOnly"); 101 101 guiKeysOnlyInputState_->setKeyHandler(GUIManager::getInstancePtr()); 102 102 -
code/branches/core4/src/orxonox/gamestates/GSLevel.h
r3245 r3274 63 63 64 64 KeyBinder* keyBinder_; //!< tool that loads and manages the input bindings 65 SimpleInputState*gameInputState_; //!< input state for normal ingame playing66 SimpleInputState*guiMouseOnlyInputState_; //!< input state if we only need the mouse to use the GUI67 SimpleInputState*guiKeysOnlyInputState_; //!< input state if we only need the keys to use the GUI65 InputState* gameInputState_; //!< input state for normal ingame playing 66 InputState* guiMouseOnlyInputState_; //!< input state if we only need the mouse to use the GUI 67 InputState* guiKeysOnlyInputState_; //!< input state if we only need the keys to use the GUI 68 68 Radar* radar_; //!< represents the Radar (not the HUD part) 69 69 CameraManager* cameraManager_; //!< camera manager for this level -
code/branches/core4/src/orxonox/gamestates/GSMainMenu.cc
r3245 r3274 32 32 33 33 #include "core/input/InputManager.h" 34 #include "core/input/ SimpleInputState.h"34 #include "core/input/InputState.h" 35 35 #include "core/Game.h" 36 36 #include "core/Clock.h" … … 57 57 void GSMainMenu::activate() 58 58 { 59 inputState_ = InputManager::getInstance().createInputState <SimpleInputState>("mainMenu");59 inputState_ = InputManager::getInstance().createInputState("mainMenu"); 60 60 inputState_->setHandler(GUIManager::getInstancePtr()); 61 inputState_->setJoyStickHandler(&Input Manager::EMPTY_HANDLER);61 inputState_->setJoyStickHandler(&InputHandler::EMPTY); 62 62 63 63 // create an empty Scene -
code/branches/core4/src/orxonox/gamestates/GSMainMenu.h
r3243 r3274 53 53 54 54 private: 55 SimpleInputState*inputState_;55 InputState* inputState_; 56 56 Scene* scene_; 57 57 Ogre::Camera* camera_;
Note: See TracChangeset
for help on using the changeset viewer.