LAB: Move functions related to keyboard events to Event
This commit is contained in:
parent
66bf888558
commit
6b24481358
8 changed files with 162 additions and 164 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue