Skip to content

Instantly share code, notes, and snippets.

@ThiagoLira
Created January 18, 2022 17:28
Show Gist options
  • Save ThiagoLira/09d67be6f8e281a2ee2d1aadbbd7bc0b to your computer and use it in GitHub Desktop.
Save ThiagoLira/09d67be6f8e281a2ee2d1aadbbd7bc0b to your computer and use it in GitHub Desktop.
[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