aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/util.cpp
diff options
context:
space:
mode:
authorSven Hesse2009-06-06 19:06:47 +0000
committerSven Hesse2009-06-06 19:06:47 +0000
commit2901694486712f6012152f7192afa10d08ffc561 (patch)
tree5691199e79c2f55d7352c34a07133e4189920529 /engines/gob/util.cpp
parent6c44c7764c3776e6189cd1dfb519709c4864d7fa (diff)
downloadscummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.tar.gz
scummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.tar.bz2
scummvm-rg350-2901694486712f6012152f7192afa10d08ffc561.zip
Demoplayer:
- Fixing the flawed double mode - Adding an "auto" double mode, where the videos get scaled if possible svn-id: r41294
Diffstat (limited to 'engines/gob/util.cpp')
-rw-r--r--engines/gob/util.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index d89368b898..e1148dacb9 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -235,6 +235,17 @@ int16 Util::checkKey(void) {
return translateKey(key);
}
+bool Util::checkKey(int16 &key) {
+ Common::KeyState keyS;
+
+ if (!getKeyFromBuffer(keyS))
+ return false;
+
+ key = translateKey(keyS);
+
+ return true;
+}
+
void Util::getMouseState(int16 *pX, int16 *pY, int16 *pButtons) {
Common::Point mouse = g_system->getEventManager()->getMousePos();
*pX = mouse.x + _vm->_video->_scrollOffsetX - _vm->_video->_screenDeltaX;