Changeset 7919 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- May 28, 2006, 3:48:13 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r7868 r7919 70 70 this->subscribeEvent(ES_SHELL, SDLK_PAGEDOWN); 71 71 this->subscribeEvent(ES_SHELL, EV_VIDEO_RESIZE); 72 EventHandler::getInstance()->withUNICODE(ES_SHELL, true); 72 73 73 74 // BUFFER … … 83 84 this->textSize = 15; 84 85 this->lineSpacing = 0; 85 this->bActive = true;86 this->bActive = false; 86 87 this->fontFile = SHELL_DEFAULT_FONT; 87 88 … … 121 122 122 123 EventHandler::getInstance()->pushState(ES_SHELL); 123 EventHandler::getInstance()->withUNICODE(true);124 124 125 125 this->setRelCoorSoft2D(0, 0, 5); … … 138 138 (*text)->setText(""); 139 139 } 140 this->shellInput.setVisibility(true); 140 141 this->updateResolution( GraphicsEngine::getInstance()->getResolutionX()); 141 142 this->repositionText(); … … 152 153 this->deactivate2D(); 153 154 154 EventHandler::getInstance()->withUNICODE(false);155 155 EventHandler::getInstance()->popState(); 156 156 … … 159 159 for (std::list<MultiLineText*>::iterator text = this->bufferText.begin(); text != this->bufferText.end(); ++text) 160 160 (*text)->setVisibility(false); 161 this->shellInput.setVisibility(false); 162 161 163 // Go to the End again. 162 164 this->bufferIterator = this->shellBuffer->getBuffer().begin(); -
trunk/src/lib/shell/shell_input.cc
r7868 r7919 305 305 this->historyMoveUp(); 306 306 this->pressedKey = event.type; 307 this->pressedEvent = event.type; 307 308 } 308 309 else if (event.type == SDLK_DOWN) … … 310 311 this->historyMoveDown(); 311 312 this->pressedKey = event.type; 313 this->pressedEvent = event.type; 312 314 } 313 315 else if (event.type == SDLK_TAB) … … 320 322 this->delayed = this->repeatDelay; 321 323 this->pressedKey = SDLK_BACKSPACE; 324 this->pressedEvent = SDLK_BACKSPACE; 322 325 this->removeCharacters(1); 323 326 } … … 326 329 this->executeCommand(); 327 330 this->pressedKey = event.type; 331 this->pressedEvent = event.type; 328 332 } 329 333 // any other keyboard key
Note: See TracChangeset
for help on using the changeset viewer.