aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-29 00:14:53 +0530
committerEugene Sandulenko2019-09-03 17:17:04 +0200
commit4a8ce49968e3a316bcdacfab0925622292fb7e24 (patch)
tree36415a3fc088a4a28131d8ed1679962ecf4a1cae /engines
parentf41e1999fb6397a8feeb7c105a40d77072ce1123 (diff)
downloadscummvm-rg350-4a8ce49968e3a316bcdacfab0925622292fb7e24.tar.gz
scummvm-rg350-4a8ce49968e3a316bcdacfab0925622292fb7e24.tar.bz2
scummvm-rg350-4a8ce49968e3a316bcdacfab0925622292fb7e24.zip
HDB: Remove _lastMouseX and _lastMouseY
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/input.cpp6
-rw-r--r--engines/hdb/input.h1
2 files changed, 1 insertions, 6 deletions
diff --git a/engines/hdb/input.cpp b/engines/hdb/input.cpp
index 41dbc9d8cb..0819410932 100644
--- a/engines/hdb/input.cpp
+++ b/engines/hdb/input.cpp
@@ -31,8 +31,6 @@ bool Input::init() {
_mouseX = kScreenWidth / 2;
_mouseY = kScreenHeight / 2;
- _lastMouseX = _mouseX;
- _lastMouseY = _mouseY;
return true;
}
@@ -153,8 +151,6 @@ void Input::stylusMove(int x, int y) {
}
void Input::updateMouse(int newX, int newY) {
- _lastMouseX = _mouseX;
- _lastMouseY = _mouseY;
_mouseX = newX;
_mouseY = newY;
@@ -169,7 +165,7 @@ void Input::updateMouse(int newX, int newY) {
_mouseY = kScreenHeight - 1;
// Turn Cursor back on?
- if ((_lastMouseX != _mouseX || _lastMouseY != _mouseY) && !g_hdb->_drawMan->getPointer()) {
+ if (!g_hdb->_drawMan->getPointer()) {
g_hdb->_drawMan->showPointer(true);
}
diff --git a/engines/hdb/input.h b/engines/hdb/input.h
index 211d9d4cb9..e585d0a56f 100644
--- a/engines/hdb/input.h
+++ b/engines/hdb/input.h
@@ -68,7 +68,6 @@ private:
bool _stylusDown;
int _stylusDownX, _stylusDownY;
int _mouseX, _mouseY;
- int _lastMouseX, _lastMouseY;
// Definable Keys
int _keyUp, _keyDown, _keyLeft, _keyRight;