LAB: Move functions related to keyboard events to Event

This commit is contained in:
Strangerke 2015-12-02 01:39:58 +01:00 committed by Willem Jan Palenstijn
parent 66bf888558
commit 6b24481358
8 changed files with 162 additions and 164 deletions

View file

@ -640,7 +640,7 @@ void LabEngine::mainGameLoop() {
/* Set up initial picture. */
while (1) {
processInput(true);
_event->processInput(true);
if (GotMessage) {
if (QuitLab || g_engine->shouldQuit()) {
@ -729,7 +729,7 @@ void LabEngine::mainGameLoop() {
GotMessage = true;
mayShowCrumbIndicator();
screenUpdate();
if (!from_crumbs(GADGETUP, code, 0, getMousePos(), curInv, curMsg, forceDraw, code, actionMode))
if (!from_crumbs(GADGETUP, code, 0, _event->updateAndGetMousePos(), curInv, curMsg, forceDraw, code, actionMode))
break;
}
}