aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-22 22:28:06 +0000
committerJohannes Schickel2009-05-22 22:28:06 +0000
commit54a170978ad481a142829997f0d27076033b3a5b (patch)
treef2a02b2148c5a948762f944c11b4acd298be928e /engines/kyra/lol.cpp
parentef4947060ef637d6b7e84c6c1b2981e69db8af91 (diff)
downloadscummvm-rg350-54a170978ad481a142829997f0d27076033b3a5b.tar.gz
scummvm-rg350-54a170978ad481a142829997f0d27076033b3a5b.tar.bz2
scummvm-rg350-54a170978ad481a142829997f0d27076033b3a5b.zip
Handle mouse move events like the original.
svn-id: r40791
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r--engines/kyra/lol.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 5584fc8ddf..9125038bf1 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -640,27 +640,6 @@ void LoLEngine::loadItemIconShapes() {
_screen->setMouseCursor(0, 0, _itemIconShapes[0]);
}
-int LoLEngine::checkInput(Button *buttonList, bool mainLoop) {
- int mx = _mouseX;
- int my = _mouseY;
-
- int inputFlag = KyraEngine_v1::checkInput(buttonList, mainLoop);
-
- if (!inputFlag) {
- // This fixes a bug with some interactive sequences (like the inn where you mee Timothy).
- // In the original code Mouse position variables are only updated when mouse button
- // or keyboard events get triggered.
-
- // TODO/FIXME: Check whether this is the correct way to do it in KYRA, too. In this case a
- // fix could be added to KyraEngine_v1::checkInput() and the virtual stuff would not be
- // necessary.
- _mouseX = mx;
- _mouseY = my;
- }
-
- return inputFlag;
-}
-
void LoLEngine::setMouseCursorToIcon(int icon) {
_gameFlags[15] |= 0x200;
int i = _itemProperties[_itemsInPlay[_itemInHand].itemPropertyIndex].shpIndex;