aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-29 00:42:24 +0530
committerEugene Sandulenko2019-09-03 17:17:04 +0200
commit5e0e12531b51fc3f904ec11849f62aa73a928c22 (patch)
treeab98e25039d3bdd5dfd9ef5babc481bc4c1972ae /engines/hdb
parent6d75390e8418f1969aae8c4643021432562f0329 (diff)
downloadscummvm-rg350-5e0e12531b51fc3f904ec11849f62aa73a928c22.tar.gz
scummvm-rg350-5e0e12531b51fc3f904ec11849f62aa73a928c22.tar.bz2
scummvm-rg350-5e0e12531b51fc3f904ec11849f62aa73a928c22.zip
HDB: Update Mouse data for buttons
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/input.cpp2
-rw-r--r--engines/hdb/input.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 0819410932..462c65cafa 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -32,6 +32,8 @@ bool Input::init() {
_mouseX = kScreenWidth / 2;
_mouseY = kScreenHeight / 2;
+ _mouseLButton = _mouseMButton = _mouseRButton = 0;
+
return true;
}
diff --git a/engines/hdb/input.h b/engines/hdb/input.h
index e585d0a56f..d649c21928 100644
--- a/engines/hdb/input.h
+++ b/engines/hdb/input.h
@@ -36,10 +36,7 @@ enum Button {
kButtonB = 2 << 5,
kButtonC = 2 << 6,
kButtonD = 2 << 7,
- kButtonMouseL = 2 << 8,
- kButtonMouseM = 2 << 9,
- kButtonMouseR = 2 << 10,
- kButtonExit = 2 << 11
+ kButtonExit = 2 << 8
};
class Input {
@@ -68,6 +65,7 @@ private:
bool _stylusDown;
int _stylusDownX, _stylusDownY;
int _mouseX, _mouseY;
+ int _mouseLButton, _mouseMButton, _mouseRButton;
// Definable Keys
int _keyUp, _keyDown, _keyLeft, _keyRight;