Changeset 928
- Timestamp:
- Mar 26, 2008, 8:18:14 PM (17 years ago)
- Location:
- code/branches/network/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/InputHandler.cc
r922 r928 80 80 windowHndStr << (unsigned int)windowHnd; 81 81 paramList.insert(std::make_pair(std::string("WINDOW"), windowHndStr.str())); 82 83 #if defined OIS_LINUX_PLATFORM 84 paramList.insert(std::make_pair(std::string("XAutoRepeatOn"), std::string("true"))); 85 #endif 82 86 83 87 // Create inputsystem … … 109 113 //assign 'abort' to the escape key 110 114 this->bindingsKeyPressed_[(int)OIS::KC_ESCAPE].id = 1; 115 } 116 117 /** 118 @brief Destroys all the created input devices. 119 */ 120 void InputHandler::destroy() 121 { 122 this->inputSystem_->destroyInputObject(this->mouse_); 123 this->inputSystem_->destroyInputObject(this->keyboard_); 124 OIS::InputManager::destroyInputSystem(this->inputSystem_); 125 126 //TODO: If the InputHandler has been destroyed, how does it know? 111 127 } 112 128 -
code/branches/network/src/orxonox/InputHandler.h
r922 r928 49 49 public: 50 50 void initialise(size_t windowHnd, int windowWidth, int windowHeight); 51 void destroy(); 51 52 void tick(float dt); 52 53 void setWindowExtents(int width, int height); -
code/branches/network/src/orxonox/Orxonox.cc
r926 r928 98 98 { 99 99 // nothing to delete as for now 100 inputHandler_->destroy(); 100 101 } 101 102
Note: See TracChangeset
for help on using the changeset viewer.