Changeset 1641 for code/branches/gui/src/core/Shell.cc
- Timestamp:
- Jul 22, 2008, 9:16:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/Shell.cc
r1638 r1641 33 33 #include "Core.h" 34 34 #include "ConsoleCommand.h" 35 #include "input/InputInterfaces.h"36 #include "input/SimpleInputState.h"37 #include "input/InputManager.h"38 35 39 36 #define SHELL_UPDATE_LISTENERS(function) \ … … 61 58 this->inputBuffer_ = new InputBuffer(); 62 59 this->configureInputBuffer(); 63 InputManager::createSimpleInputState("console", 40)->setKeyHandler(this->inputBuffer_);64 60 65 61 this->outputBuffer_.registerListener(this); … … 70 66 Shell::~Shell() 71 67 { 72 SimpleInputState * inputState = dynamic_cast<SimpleInputState*>(InputManager::getState("console")); 73 if (inputState) 74 { 75 inputState->removeAndDestroyAllHandlers(); 76 InputManager::destroyState("console"); 77 } 68 if (this->inputBuffer_) 69 delete this->inputBuffer_; 78 70 } 79 71
Note: See TracChangeset
for help on using the changeset viewer.