diff options
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 126e16c77b..1af7f5c736 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -263,27 +263,11 @@ uint16 Parallaction::updateInput() { // FIXME: see comment for updateInput() void waitUntilLeftClick() { - Common::Event e; - - Common::EventManager *eventMan = g_system->getEventManager(); - for (;;) { - eventMan->pollEvent(e); - - if (e.type == Common::EVENT_LBUTTONUP) - break; - - if (e.type == Common::EVENT_QUIT) { - // TODO: don't quit() here, just have caller routines to check - // on kEngineQuit and exit gracefully to allow the engine to shut down - _engineFlags |= kEngineQuit; - g_system->quit(); - break; - } - + do { + _vm->updateInput(); _vm->_gfx->updateScreen(); g_system->delayMillis(30); - } - + } while (_mouseButtons != kMouseLeftUp); return; } |