From bcd32509bb3b27073d57e2e9e4a4d0bcf7743403 Mon Sep 17 00:00:00 2001 From: Joseph-Eugene Winzer Date: Sat, 29 Jul 2017 11:38:20 +0200 Subject: SUPERNOVA: Implements 'wait for input' Currrently the only implemented scene that uses this function is looking at the monitor in the cockpit. Depending on use cases in other scenes the function needs to be extended. --- engines/supernova/state.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/supernova') diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp index 42e1db9a9e..4fb856a0ad 100644 --- a/engines/supernova/state.cpp +++ b/engines/supernova/state.cpp @@ -540,8 +540,15 @@ void GameManager::mouseInput() { } void GameManager::mouseInput2() { - // STUB - // If animation off and timer expired, skip room animation + while (true) { + _vm->updateEvents(); + // TODO: handle key input (e.g. alt+x, F-keys?) + if (_mouseClicked || _key) { + break; + } + g_system->updateScreen(); + g_system->delayMillis(_vm->_delay); + } } void GameManager::mouseInput3() { -- cgit v1.2.3