Changeset 1084 for code/trunk/src
- Timestamp:
- Apr 16, 2008, 9:22:50 PM (17 years ago)
- Location:
- code/trunk/src
- Files:
-
- 5 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: -
code/trunk/src/orxonox/Orxonox.cc
r1066 r1084 115 115 { 116 116 this->ib_->removeLast(); 117 } 118 void exit() const 119 { 120 CommandExecutor::execute("setInputMode 2"); 117 121 } 118 122 … … 405 409 ib->registerListener(console, &Testconsole::clear, '§', true); 406 410 ib->registerListener(console, &Testconsole::removeLast, '\b', true); 411 ib->registerListener(console, &Testconsole::exit, (char)0x1B, true); 407 412 408 413 // first check whether ogre root object has been created … … 452 457 { 453 458 (it)->tick((float)evt.timeSinceLastFrame * this->timefactor_); 454 455 }459 it++; 460 } 456 461 457 462 // don't forget to call _fireFrameStarted in ogre to make sure -
code/trunk/src/util/CMakeLists.txt
r1076 r1084 1 1 AUX_SOURCE_DIRECTORY(tinyxml TINYXML_SRC_FILES) 2 AUX_SOURCE_DIRECTORY(tolua TOLUA_SRC_FILES)3 2 4 3 SET (UTIL_SRC_FILES … … 11 10 MultiTypeString.cc 12 11 MultiTypeMath.cc 12 tolua_event.c 13 tolua_is.c 14 tolua_map.c 15 tolua_push.c 16 tolua_to.c 13 17 ${TINYXML_SRC_FILES} 14 ${TOLUA_SRC_FILES}15 18 ) 16 19
Note: See TracChangeset
for help on using the changeset viewer.