[Scummvm-git-logs] scummvm master -> 76579deff2b8a51f9ab64f06d125ff40c0960447
tag2015
noreply at scummvm.org
Fri Jan 20 16:26:07 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:
76579deff2 AGS: Remove unused OSX right mouseclick hack
Commit: 76579deff2b8a51f9ab64f06d125ff40c0960447
https://github.com/scummvm/scummvm/commit/76579deff2b8a51f9ab64f06d125ff40c0960447
Author: Walter Agazzi (walter.agazzi at protonmail.com)
Date: 2023-01-20T17:25:14+01:00
Commit Message:
AGS: Remove unused OSX right mouseclick hack
Partially from upstream 3fd5531f79044f58c261d9af0c7401ab1edf4ca7
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 73e41b7bc60..01f0b084d17 100644
--- a/engines/ags/engine/ac/sys_events.cpp
+++ b/engines/ags/engine/ac/sys_events.cpp
@@ -174,17 +174,6 @@ static eAGSMouseButton mgetbutton() {
else if (butis & MouseBitMiddle)
return kMouseMiddle;
return kMouseNone;
-
- // TODO: presumably this was a hack for 1-button Mac mouse;
- // is this still necessary?
- // find an elegant way to reimplement this; e.g. allow to configure key->mouse mappings?!
-#define AGS_SIMULATE_RIGHT_CLICK (AGS_PLATFORM_OS_MACOS)
-#if defined (AGS_SIMULATE_RIGHT_CLICK__FIXME)
- // j Ctrl-left click should be right-click
- if (ags_iskeypressed(__allegro_KEY_LCONTROL) || ags_iskeypressed(__allegro_KEY_RCONTROL)) {
- toret = RIGHT;
- }
-#endif
}
bool ags_misbuttondown(eAGSMouseButton but) {
More information about the Scummvm-git-logs
mailing list