diff options
author | Johannes Schickel | 2008-04-06 13:06:05 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-06 13:06:05 +0000 |
commit | 4f71d3814c76c1adb80ac46b6c89a405a98ddd1a (patch) | |
tree | c2c95f57428433abca800373a8d7bc70c7bf615b /engines/kyra/kyra_v2.cpp | |
parent | 0dcfa7b3dfd2d41f3e6304606340bfd858e908b8 (diff) | |
download | scummvm-rg350-4f71d3814c76c1adb80ac46b6c89a405a98ddd1a.tar.gz scummvm-rg350-4f71d3814c76c1adb80ac46b6c89a405a98ddd1a.tar.bz2 scummvm-rg350-4f71d3814c76c1adb80ac46b6c89a405a98ddd1a.zip |
Fixed various bugs in GUI_v2::processButtonList.
This fixes bugs:
- #1935827 "HoF: Buttons pressed state not available"
- #1935219 "HoF: artefact after loading game"
svn-id: r31422
Diffstat (limited to 'engines/kyra/kyra_v2.cpp')
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp index 5e4ac8909f..176cc1bb6f 100644 --- a/engines/kyra/kyra_v2.cpp +++ b/engines/kyra/kyra_v2.cpp @@ -771,10 +771,11 @@ void KyraEngine_v2::updateInput() { _eventList.push_back(event); break; - case Common::EVENT_LBUTTONUP: + case Common::EVENT_LBUTTONDOWN: _eventList.push_back(Event(event, true)); break; + case Common::EVENT_LBUTTONUP: case Common::EVENT_MOUSEMOVE: _eventList.push_back(event); break; @@ -822,11 +823,12 @@ int KyraEngine_v2::checkInput(Button *buttonList, bool mainLoop) { _screen->updateScreen(); } break; + case Common::EVENT_LBUTTONDOWN: case Common::EVENT_LBUTTONUP: { Common::Point pos = getMousePos(); _mouseX = pos.x; _mouseY = pos.y; - keys = 199; + keys = event.type == Common::EVENT_LBUTTONDOWN ? 199 : (200 | 0x800); breakLoop = true; } break; |