Changeset 993 for code/branches/core2/src/orxonox/Orxonox.cc
- Timestamp:
- Apr 5, 2008, 3:40:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/Orxonox.cc
r972 r993 86 86 #include "objects/test3.h" 87 87 88 #include "core/ConsoleCommand.h" 88 89 #include "core/CommandExecutor.h" 89 90 #include "core/InputBuffer.h" … … 93 94 namespace orxonox 94 95 { 96 ConsoleCommandShortcut(Orxonox, exit, AccessLevel::None); 97 95 98 class Testlistener : public InputBufferListener 96 99 { … … 150 153 151 154 mKeyboard->capture(); 152 return !mKeyboard->isKeyDown(OIS::KC_ESCAPE);155 return (!mKeyboard->isKeyDown(OIS::KC_ESCAPE) && !Orxonox::getSingleton()->shouldExit()); 153 156 } 154 157 /* … … 185 188 this->frameListener_ = 0; 186 189 this->root_ = 0; 190 this->bExit_ = false; 187 191 } 188 192
Note: See TracChangeset
for help on using the changeset viewer.