fixed my fix - mouse cursor now moves again in new GUI

svn-id: r4550
This commit is contained in:
Max Horn 2002-07-15 12:47:12 +00:00
parent d354176107
commit 272c391eb0

View file

@ -1263,10 +1263,8 @@ void Scumm::waitForTimer(int msec_delay) {
// if newgui is running, copy event to EventList, and let the GUI handle it itself
// we might consider this approach for ScummLoop as well, and clean up the current mess
if (_newgui->isActive()) {
if (_newgui->isActive())
_newgui->handleEvent(event);
continue;
}
switch(event.event_code) {
case OSystem::EVENT_KEYDOWN:
@ -1286,7 +1284,7 @@ void Scumm::waitForTimer(int msec_delay) {
g_debugger.attach(this);
else if (event.kbd.keycode=='s')
resourceStats();
} else
} else if (!_newgui->isActive())
_keyPressed = event.kbd.ascii; // Normal key press, pass on to the game.
break;