Created
January 18, 2022 17:28
-
-
Save ThiagoLira/09d67be6f8e281a2ee2d1aadbbd7bc0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HarmonyPatch(typeof(Game1), "isOneOfTheseKeysDown")] | |
class IsButtonDownHack | |
{ | |
// ... | |
// some important stuff | |
// ... | |
// change function return value to true | |
// makes the game think a mouse left button click ocurred | |
__result = true; | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment