mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 13:13:58 +00:00
DIRECTOR: Handle keyDown in 1-ary processEvent
Might change semantics by calling the standard chain for input events. That is what the D4 docs suggest anyway.
This commit is contained in:
parent
137e10eef2
commit
3059c95abd
@ -110,7 +110,7 @@ void DirectorEngine::processEvents() {
|
||||
warning("Keycode: %d", _keyCode);
|
||||
}
|
||||
|
||||
_lingo->processEvent(kEventKeyDown, kGlobalScript, 0);
|
||||
_lingo->processEvent(kEventKeyDown);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -175,6 +175,10 @@ void Lingo::processInputEvent(LEvent event) {
|
||||
else
|
||||
g_lingo->processEvent(kEventNone, kFrameScript, currentFrame->_sprites[spriteId]->_scriptId);
|
||||
}
|
||||
if (event == kEventKeyDown) {
|
||||
// TODO: is the above condition necessary or useful?
|
||||
g_lingo->processEvent(event, kGlobalScript, 0);
|
||||
}
|
||||
runMovieScript(event);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user