- Timestamp:
- Jul 27, 2009, 1:57:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/orxonox/gamestates/GSGraphics.cc
r3355 r3357 65 65 , debugOverlay_(0) 66 66 { 67 // load master key bindings 68 masterInputState_ = InputManager::getInstance().createInputState("master", true); 69 masterKeyBinder_ = new KeyBinder(); 67 70 } 68 71 69 72 GSGraphics::~GSGraphics() 70 73 { 74 InputManager::getInstance().destroyState("master"); 75 delete this->masterKeyBinder_; 71 76 } 72 77 … … 92 97 this->debugOverlay_ = new XMLFile(Core::getMediaPathString() + "overlay/debug.oxo"); 93 98 Loader::open(debugOverlay_); 94 // load master key bindings 95 masterInputState_ = InputManager::getInstance().createInputState("master", true); 96 masterKeyBinder_ = new KeyBinder(); 99 97 100 masterKeyBinder_->loadBindings("masterKeybindings.ini"); 98 101 masterInputState_->setKeyHandler(masterKeyBinder_); … … 130 133 } 131 134 */ 132 133 masterInputState_->setHandler(0);134 InputManager::getInstance().destroyState("master");135 delete this->masterKeyBinder_;136 135 137 136 delete this->console_;
Note: See TracChangeset
for help on using the changeset viewer.