[Scummvm-git-logs] scummvm master -> bb88de349de0ef947ba3ad3891ecce9799c8eb9e
dreammaster
noreply at scummvm.org
Thu May 9 03:18:53 UTC 2024
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:
bb88de349d CREATE_ENGINE: Fix mapping event to pressed mouse button enum
Commit: bb88de349de0ef947ba3ad3891ecce9799c8eb9e
https://github.com/scummvm/scummvm/commit/bb88de349de0ef947ba3ad3891ecce9799c8eb9e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2024-05-08T20:18:40-07:00
Commit Message:
CREATE_ENGINE: Fix mapping event to pressed mouse button enum
Changed paths:
devtools/create_engine/files_events/messages.cpp
diff --git a/devtools/create_engine/files_events/messages.cpp b/devtools/create_engine/files_events/messages.cpp
index 6bbf8271421..8c8664d1eae 100644
--- a/devtools/create_engine/files_events/messages.cpp
+++ b/devtools/create_engine/files_events/messages.cpp
@@ -26,9 +26,11 @@ namespace Xyzzy {
MouseMessage::MouseMessage(Common::EventType type,
const Common::Point &pos) : Message(), _pos(pos) {
switch (type) {
+ case Common::EVENT_RBUTTONDOWN:
case Common::EVENT_RBUTTONUP:
_button = MB_RIGHT;
break;
+ case Common::EVENT_MBUTTONDOWN:
case Common::EVENT_MBUTTONUP:
_button = MB_MIDDLE;
break;
More information about the Scummvm-git-logs
mailing list