Changeset 1084 for code/trunk/src/core
- Timestamp:
- Apr 16, 2008, 9:22:50 PM (17 years ago)
- Location:
- code/trunk/src/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/CMakeLists.txt
r1076 r1084 1 1 #get the created files 2 2 AUX_SOURCE_DIRECTORY(tolua TOLUA_BIND_FILES) 3 4 MESSAGE(STATUS "tolua sources: ${TOLUA_BIND_FILES}")5 3 6 4 SET( CORE_SRC_FILES -
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 -
code/trunk/src/core/InputManager.h
r1066 r1084 72 72 void tick(float dt); 73 73 void setWindowExtents(int width, int height); 74 void setInputMode(InputMode mode);75 74 InputMode getInputMode(); 76 75 … … 84 83 static InputManager& getSingleton(); 85 84 static InputManager* getSingletonPtr() { return &getSingleton(); } 85 static void setInputMode(int mode); 86 86 87 87 private:
Note: See TracChangeset
for help on using the changeset viewer.