Changeset 1084 for code/trunk/src/core/InputManager.cc
- Timestamp:
 - Apr 16, 2008, 9:22:50 PM (18 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          code/trunk/src/core/InputManager.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/trunk/src/core/InputManager.cc
r1066 r1084 39 39 #include "InputHandler.h" 40 40 #include "InputBuffer.h" 41 #include "ConsoleCommand.h" 41 42 42 43 namespace orxonox 43 44 { 45 ConsoleCommand(InputManager, setInputMode, AccessLevel::Admin, true).setDefaultValue(0, IM_INGAME); 46 44 47 /** 45 48 @brief Constructor only resets the pointer values to 0. … … 227 230 @remark Only has an affect if the mode actually changes 228 231 */ 229 void InputManager::setInputMode(InputMode mode) 230 { 231 this->setMode_ = mode; 232 void InputManager::setInputMode(int mode) 233 { 234 if (mode > 0 && mode < 4) 235 getSingleton().setMode_ = (InputMode)mode; 232 236 } 233 237  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






