aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalanche.cpp
diff options
context:
space:
mode:
authoruruk2013-08-16 23:02:53 +0200
committeruruk2013-08-16 23:02:53 +0200
commit05f3838b16a5e9533c2a0faeb18dfc50610eface (patch)
treee3ca80eb24589030893b7a0d56557aa2c10b5567 /engines/avalanche/avalanche.cpp
parent2bcca8a0dd17f4ae55ff4587a54c63d60a021b03 (diff)
downloadscummvm-rg350-05f3838b16a5e9533c2a0faeb18dfc50610eface.tar.gz
scummvm-rg350-05f3838b16a5e9533c2a0faeb18dfc50610eface.tar.bz2
scummvm-rg350-05f3838b16a5e9533c2a0faeb18dfc50610eface.zip
AVALANCHE: Partially implement Lucerna::checkclick(), upgrade other parts of the code during the process. Repair Gyro::load_a_mouse().
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
-rw-r--r--engines/avalanche/avalanche.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp
index 8196065bef..c2d0e0bd59 100644
--- a/engines/avalanche/avalanche.cpp
+++ b/engines/avalanche/avalanche.cpp
@@ -137,6 +137,12 @@ void AvalancheEngine::updateEvents() {
while (_eventMan->pollEvent(event)) {
switch (event.type) {
+ case Common::EVENT_LBUTTONDOWN:
+ _lucerna->holdLeftMouse = true; // Used in Lucerna::checkclick().
+ break;
+ case Common::EVENT_LBUTTONUP:
+ _lucerna->holdLeftMouse = false; // Same as above.
+ break;
case Common::EVENT_KEYDOWN:
_avalot->handleKeyDown(event);
}