diff options
Diffstat (limited to 'engines/queen/journal.cpp')
-rw-r--r-- | engines/queen/journal.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/queen/journal.cpp b/engines/queen/journal.cpp index 82a2a5e0b8..be4b3a45a1 100644 --- a/engines/queen/journal.cpp +++ b/engines/queen/journal.cpp @@ -21,6 +21,7 @@ */ #include "common/stdafx.h" +#include "common/events.h" #include "common/system.h" #include "queen/journal.h" @@ -65,7 +66,8 @@ void Journal::use() { _quitMode = QM_LOOP; while (_quitMode == QM_LOOP) { OSystem::Event event; - while (_system->pollEvent(event)) { + Common::EventManager *eventMan = _system->getEventManager(); + while (eventMan->pollEvent(event)) { switch (event.type) { case OSystem::EVENT_KEYDOWN: handleKeyDown(event.kbd.ascii, event.kbd.keycode); |