Changeset 3327 for code/trunk/src/orxonox/overlays/console
- Timestamp:
- Jul 19, 2009, 5:31:02 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core4 merged: 3269,3271-3275,3278,3285,3290-3294,3310
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/console/InGameConsole.cc
r3301 r3327 49 49 #include "core/ConsoleCommand.h" 50 50 #include "core/input/InputManager.h" 51 #include "core/input/ SimpleInputState.h"51 #include "core/input/InputState.h" 52 52 #include "core/input/InputBuffer.h" 53 53 … … 98 98 99 99 // destroy the input state previously created (InputBuffer gets destroyed by the Shell) 100 InputManager::getInstance(). requestDestroyState("console");100 InputManager::getInstance().destroyState("console"); 101 101 102 102 Ogre::OverlayManager* ovMan = Ogre::OverlayManager::getSingletonPtr(); … … 158 158 if (bHidesAllInput_) 159 159 { 160 inputState_->setMouseHandler(&Input Manager::EMPTY_HANDLER);161 inputState_->setJoyStickHandler(&Input Manager::EMPTY_HANDLER);160 inputState_->setMouseHandler(&InputHandler::EMPTY); 161 inputState_->setJoyStickHandler(&InputHandler::EMPTY); 162 162 } 163 163 else … … 172 172 @brief Initializes the InGameConsole. 173 173 */ 174 void InGameConsole::initialise( int windowWidth, int windowHeight)174 void InGameConsole::initialise() 175 175 { 176 176 // create the corresponding input state 177 inputState_ = InputManager::getInstance().createInputState <SimpleInputState>("console", false, false, InputStatePriority::Console);177 inputState_ = InputManager::getInstance().createInputState("console", false, false, InputStatePriority::Console); 178 178 inputState_->setKeyHandler(Shell::getInstance().getInputBuffer()); 179 179 bHidesAllInputChanged(); … … 248 248 this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_); 249 249 250 this->windowResized( windowWidth, windowHeight);250 this->windowResized(this->getWindowWidth(), this->getWindowWidth()); 251 251 252 252 // move overlay "above" the top edge of the screen … … 507 507 { 508 508 this->bActive_ = true; 509 InputManager::getInstance(). requestEnterState("console");509 InputManager::getInstance().enterState("console"); 510 510 Shell::getInstance().registerListener(this); 511 511 … … 529 529 { 530 530 this->bActive_ = false; 531 InputManager::getInstance(). requestLeaveState("console");531 InputManager::getInstance().leaveState("console"); 532 532 Shell::getInstance().unregisterListener(this); 533 533 -
code/trunk/src/orxonox/overlays/console/InGameConsole.h
r3196 r3327 36 36 #include "util/OgreForwardRefs.h" 37 37 #include "core/Shell.h" 38 #include " interfaces/WindowEventListener.h"38 #include "core/WindowEventListener.h" 39 39 40 40 namespace orxonox … … 46 46 ~InGameConsole(); 47 47 48 void initialise( int windowWidth, int windowHeight);48 void initialise(); 49 49 void destroy(); 50 50 void setConfigValues(); … … 101 101 102 102 // input related 103 SimpleInputState* inputState_;103 InputState* inputState_; 104 104 105 105 // config values
Note: See TracChangeset
for help on using the changeset viewer.