[Scummvm-git-logs] scummvm master -> 67c5811a155cc66a9a3a8e15328c9e053d951640

bluegr bluegr at gmail.com
Tue Feb 4 08:07:45 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
67c5811a15 WINTERMUTE: Fix handling of EVENT_WHEELDOWN


Commit: 67c5811a155cc66a9a3a8e15328c9e053d951640
    https://github.com/scummvm/scummvm/commit/67c5811a155cc66a9a3a8e15328c9e053d951640
Author: lolbot-iichan (lolbot_iichan at mail.ru)
Date: 2020-02-04T10:07:42+02:00

Commit Message:
WINTERMUTE: Fix handling of EVENT_WHEELDOWN

"MouseWheelUp" event was generated instead of "MouseWheelDown" event on
Common::EVENT_WHEELDOWN.

Affected 2D games: FoxTail, Looky, Helga Deep in Trouble, Carol Reed
series, Reversion 2, James Peris, Vsevolod

Changed paths:
    engines/wintermute/platform_osystem.cpp


diff --git a/engines/wintermute/platform_osystem.cpp b/engines/wintermute/platform_osystem.cpp
index d77aea1..119ea74 100644
--- a/engines/wintermute/platform_osystem.cpp
+++ b/engines/wintermute/platform_osystem.cpp
@@ -111,7 +111,7 @@ void BasePlatform::handleEvent(Common::Event *event) {
 	case Common::EVENT_WHEELUP:
 	case Common::EVENT_WHEELDOWN:
 		if (_gameRef) {
-			_gameRef->handleMouseWheel(event->mouse.y);
+			_gameRef->handleMouseWheel(event->type == Common::EVENT_WHEELUP ? 1 : -1);
 		}
 		break;
 	case Common::EVENT_SCREEN_CHANGED:




More information about the Scummvm-git-logs mailing list