aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/cryomni3d.h
diff options
context:
space:
mode:
authorLe Philousophe2019-06-01 17:52:50 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commit475f9ea293331537c84cbc4d6f57647ba1820378 (patch)
treef7542fbe275a21aa34bb7a248fd9d071055945a5 /engines/cryomni3d/cryomni3d.h
parente707e312da9979664c9a853457269c39e04e0aca (diff)
downloadscummvm-rg350-475f9ea293331537c84cbc4d6f57647ba1820378.tar.gz
scummvm-rg350-475f9ea293331537c84cbc4d6f57647ba1820378.tar.bz2
scummvm-rg350-475f9ea293331537c84cbc4d6f57647ba1820378.zip
CRYOMNI3D: Fix missed clicks when occuring beteen two pollEvent
Diffstat (limited to 'engines/cryomni3d/cryomni3d.h')
-rw-r--r--engines/cryomni3d/cryomni3d.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/cryomni3d/cryomni3d.h b/engines/cryomni3d/cryomni3d.h
index 6d6faffda8..003d5080b0 100644
--- a/engines/cryomni3d/cryomni3d.h
+++ b/engines/cryomni3d/cryomni3d.h
@@ -117,7 +117,7 @@ public:
bool pollEvents();
Common::Point getMousePos();
void setMousePos(const Common::Point &point);
- uint getCurrentMouseButton();
+ uint getCurrentMouseButton() { return _lastMouseButton; }
Common::KeyState getNextKey();
bool checkKeysPressed();
bool checkKeysPressed(uint numKeys, ...);
@@ -161,6 +161,7 @@ protected:
DragStatus _dragStatus;
Common::Point _dragStart;
+ uint _lastMouseButton;
uint _autoRepeatNextEvent;
private: