-
Notifications
You must be signed in to change notification settings - Fork 67
[GEN] Backport left click deselect functionality with Alternate Mouse Setup from Zero Hour #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backported correctly from ZH, but the Superhacker comments need to disappear to make it GEN and ZH version identical for future merging.
Compiled and tested it and the option does indeed appear in the options menu.
Generals/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/GUICommandTranslator.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
…mmandTranslator.cpp
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameClient/MessageStream/SelectionXlat.cpp
Outdated
Show resolved
Hide resolved
Can someone please explain what this changes? I do not understand the title and I also do not understand "PreventLeftClickDeselectionInAlternateMouseModeForOneClick". |
"Alternate mouse mode" is a setting in the options menu in the game moves the action commands (move, attack etc) from the left to the right mouse button. The left mouse button would then be used to deselect any selected unit(s). However in Generals this is bugged and pressing the left button doesn't deselect. In ZH the developers fixed this. This is a direct code-copy from ZH, so also helps with unifying code. |
Ok now I understand. I updated the title and description to clarify what this does. The change looks safe, but perhaps it would still be worthwhile to test if this would cause multiplayer mismatch. I don't think it will but I am not 100% sure. |
That's fine. Will need to fix the ExeCRC issue first. I've linked it in the start post as a reminder |
This change backports the left mouse click deselect functionality with the Alternate Mouse Setup from Zero Hour to Generals. Previously in Generals it was not possible to deselect units or buildings with a mouse click when the Alternate Mouse Setup was enabled.