[Scummvm-git-logs] scummvm master -> de34fdbe68ce7f717fc8d9e73455c888773ad1b9

criezy noreply at scummvm.org
Tue Jan 3 14:31:31 UTC 2023


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:
de34fdbe68 AGS: Fix mousepress not being tracked


Commit: de34fdbe68ce7f717fc8d9e73455c888773ad1b9
    https://github.com/scummvm/scummvm/commit/de34fdbe68ce7f717fc8d9e73455c888773ad1b9
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-01-03T14:31:27Z

Commit Message:
AGS: Fix mousepress not being tracked

This caused the "autoclick/skipping lines" bugs

Changed paths:
    engines/ags/engine/ac/sys_events.cpp


diff --git a/engines/ags/engine/ac/sys_events.cpp b/engines/ags/engine/ac/sys_events.cpp
index 9c691138f6b..73e41b7bc60 100644
--- a/engines/ags/engine/ac/sys_events.cpp
+++ b/engines/ags/engine/ac/sys_events.cpp
@@ -166,6 +166,7 @@ static eAGSMouseButton mgetbutton() {
 	if ((butis > 0) & (_G(butwas) > 0))
 		return kMouseNone;  // don't allow holding button down
 
+	_G(butwas) = butis;
 	if (butis & MouseBitLeft)
 		return kMouseLeft;
 	else if (butis & MouseBitRight)




More information about the Scummvm-git-logs mailing list