DREAMWEB: Make it easier to quit (albeit not yet very gracefully)

This commit is contained in:
eriktorbjorn 2011-06-11 16:55:57 +02:00 committed by Alyssa Milburn
parent d0404f4b61
commit b01af82d09

View File

@ -99,11 +99,12 @@ void DreamWebEngine::waitForVSync() {
void DreamWebEngine::processEvents() {
Common::EventManager *event_manager = _system->getEventManager();
Common::Event event;
if (event_manager->shouldQuit()) {
warning("Engine should quit gracefully (but doesn't yet)");
g_system->quit();
}
while (event_manager->pollEvent(event)) {
switch(event.type) {
case Common::EVENT_RTL:
warning("quit requested");
return;
case Common::EVENT_LBUTTONDOWN:
_mouseState |= 1;
break;