Drascula: Fix bug #2011470.

Bug #2011470: "DRASCULA: slowdown when you hold mouse buttons" fixed
by changing right mouse semantic. Now the items menu showed on
button up instead mouse down like earlier.

svn-id: r49721
This commit is contained in:
Eugene Sandulenko 2010-06-15 10:24:19 +00:00
parent 08c5d37da4
commit 508256a71e

View File

@ -507,6 +507,7 @@ bool DrasculaEngine::runCurrentChapter() {
#else
if (rightMouseButton == 1 && _menuScreen) {
#endif
rightMouseButton = 0;
delay(100);
if (currentChapter == 2) {
loadPic(menuBackground, cursorSurface);
@ -535,6 +536,7 @@ bool DrasculaEngine::runCurrentChapter() {
if (rightMouseButton == 1 && !_menuScreen &&
!(currentChapter == 5 && pickedObject == 16)) {
#endif
rightMouseButton = 0;
delay(100);
characterMoved = 0;
if (trackProtagonist == 2)
@ -760,10 +762,10 @@ void DrasculaEngine::updateEvents() {
leftMouseButton = 0;
break;
case Common::EVENT_RBUTTONDOWN:
rightMouseButton = 1;
// We changed semantic and react only on button up event
break;
case Common::EVENT_RBUTTONUP:
rightMouseButton = 0;
rightMouseButton = 1;
break;
case Common::EVENT_QUIT:
// TODO