From 2901694486712f6012152f7192afa10d08ffc561 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sat, 6 Jun 2009 19:06:47 +0000 Subject: Demoplayer: - Fixing the flawed double mode - Adding an "auto" double mode, where the videos get scaled if possible svn-id: r41294 --- engines/gob/util.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines/gob/util.cpp') 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; -- cgit v1.2.3