aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/events.cpp
diff options
context:
space:
mode:
authorChristopher Page2008-07-10 22:34:48 +0000
committerChristopher Page2008-07-10 22:34:48 +0000
commit17ce8db211051bf0b7626958201b5bcfec206979 (patch)
tree2b7b2f476c21e49fb8f36fd752a991210bd60870 /engines/lure/events.cpp
parent1fd613afa681fc3a81d9ed3f5c6fb34513ca2fd7 (diff)
downloadscummvm-rg350-17ce8db211051bf0b7626958201b5bcfec206979.tar.gz
scummvm-rg350-17ce8db211051bf0b7626958201b5bcfec206979.tar.bz2
scummvm-rg350-17ce8db211051bf0b7626958201b5bcfec206979.zip
Lure works with the new GMM implementation
svn-id: r32996
Diffstat (limited to 'engines/lure/events.cpp')
-rw-r--r--engines/lure/events.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/engines/lure/events.cpp b/engines/lure/events.cpp
index 3d093365f6..eec9dbda11 100644
--- a/engines/lure/events.cpp
+++ b/engines/lure/events.cpp
@@ -141,9 +141,9 @@ void Mouse::waitForRelease() {
LureEngine &engine = LureEngine::getReference();
do {
- while (e.pollEvent() && !engine._quit) ;
+ while (e.pollEvent() && !engine.quit()) ;
g_system->delayMillis(20);
- } while (!engine._quit && (lButton() || rButton() || mButton()));
+ } while (!engine.quit() && (lButton() || rButton() || mButton()));
}
/*--------------------------------------------------------------------------*/
@@ -166,10 +166,6 @@ bool Events::pollEvent() {
// Handle keypress
switch (_event.type) {
- case Common::EVENT_QUIT:
- engine._quit = true;
- break;
-
case Common::EVENT_LBUTTONDOWN:
case Common::EVENT_LBUTTONUP:
case Common::EVENT_RBUTTONDOWN:
@@ -217,7 +213,7 @@ bool Events::interruptableDelay(uint32 milliseconds) {
uint32 delayCtr = g_system->getMillis() + milliseconds;
while (g_system->getMillis() < delayCtr) {
- if (engine._quit) return true;
+ if (engine.quit()) return true;
if (events.pollEvent()) {
if (((events.type() == Common::EVENT_KEYDOWN) && (events.event().kbd.ascii != 0)) ||