Changeset 7858 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- May 25, 2006, 3:59:34 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_input.cc
r7771 r7858 334 334 this->addCharacter(event.x); 335 335 this->pressedKey = event.x; 336 this->pressedEvent = event.type; 336 337 } 337 338 this->delayed = this->repeatDelay; … … 339 340 else // if(!event.bPressed) 340 341 { 341 if (this->pressedKey == event.x || this->pressedKey == event.type) 342 { 342 if (this->pressedEvent == event.type) 343 { 344 this->pressedEvent = 0; 343 345 this->pressedKey = 0; 344 346 this->delayed = 0.0; -
trunk/src/lib/shell/shell_input.h
r7729 r7858 68 68 float delayed; //!< how much of the delay is remaining. 69 69 Uint16 pressedKey; //!< the pressed key that will be repeated. 70 Uint16 pressedEvent; //!< The Event, that lead to the pressing of the Key. 70 71 71 72 static std::list<std::string> history; //!< The history of given commands.
Note: See TracChangeset
for help on using the changeset viewer.