diff options
author | Sven Hesse | 2009-06-06 19:06:47 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-06 19:06:47 +0000 |
commit | 2901694486712f6012152f7192afa10d08ffc561 (patch) | |
tree | 5691199e79c2f55d7352c34a07133e4189920529 /engines/gob/util.cpp | |
parent | 6c44c7764c3776e6189cd1dfb519709c4864d7fa (diff) | |
download | scummvm-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.cpp | 11 |
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; |