[Scummvm-git-logs] scummvm master -> 42cfa8cda2d6b4cf7604b6ebbdd4b0071bbb6648
moralrecordings
code at moral.net.au
Thu May 7 15:32:22 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:
42cfa8cda2 DIRECTOR: LINGO: Implement kTheMouseDown and kTheMouseUp
Commit: 42cfa8cda2d6b4cf7604b6ebbdd4b0071bbb6648
https://github.com/scummvm/scummvm/commit/42cfa8cda2d6b4cf7604b6ebbdd4b0071bbb6648
Author: Scott Percival (code at moral.net.au)
Date: 2020-05-07T23:32:02+08:00
Commit Message:
DIRECTOR: LINGO: Implement kTheMouseDown and kTheMouseUp
Changed paths:
engines/director/lingo/lingo-the.cpp
diff --git a/engines/director/lingo/lingo-the.cpp b/engines/director/lingo/lingo-the.cpp
index 6855b0288a..22ff87c552 100644
--- a/engines/director/lingo/lingo-the.cpp
+++ b/engines/director/lingo/lingo-the.cpp
@@ -432,6 +432,10 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) {
d.u.i = -1;
}
break;
+ case kTheMouseDown:
+ d.type = INT;
+ d.u.i = g_system->getEventManager()->getButtonState() & (1 << Common::MOUSE_BUTTON_LEFT | 1 << Common::MOUSE_BUTTON_RIGHT) ? 1 : 0;
+ break;
case kTheMouseH:
d.type = INT;
d.u.i = g_system->getEventManager()->getMousePos().x;
@@ -440,6 +444,10 @@ Datum Lingo::getTheEntity(int entity, Datum &id, int field) {
d.type = INT;
d.u.i = g_system->getEventManager()->getMousePos().y;
break;
+ case kTheMouseUp:
+ d.type = INT;
+ d.u.i = g_system->getEventManager()->getButtonState() & (1 << Common::MOUSE_BUTTON_LEFT | 1 << Common::MOUSE_BUTTON_RIGHT) ? 0 : 1;
+ break;
case kThePerFrameHook:
warning("STUB: Lingo::getTheEntity(): getting the perframehook");
break;
More information about the Scummvm-git-logs
mailing list