mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 16:59:06 +00:00
DREAMWEB: Make it easier to quit (albeit not yet very gracefully)
This commit is contained in:
parent
d0404f4b61
commit
b01af82d09
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user