Skip to content
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

GetKeyDown and GetKey triggers #552

Open
FelipeLael opened this issue Sep 21, 2024 · 0 comments
Open

GetKeyDown and GetKey triggers #552

FelipeLael opened this issue Sep 21, 2024 · 0 comments
Labels
question A question about anything

Comments

@FelipeLael
Copy link

FelipeLael commented Sep 21, 2024

I am trying to use the methods which checks my inputs in the game and using those not all inputs are being printed.

const InputLegacyModule = Il2Cpp.domain.assembly("UnityEngine.InputLegacyModule").image;
      const Input = InputLegacyModule.class("UnityEngine.Input");
      const GetKeyDown = Input.method("GetKeyDown");
      GetKeyDown.implementation = function (this, key) {
         const result = this.method("GetKeyDown").invoke(key);
         if (result) {
            console.log("Key pressed: " + key);
         }
         return result;
      };

It is only printing the keys that the game itself uses to recognize actions. So for example, it does recognize WASD for moviment but not F3 or F4. Is there a way to see all inputs that i am using in the game by using frida-il2cpp-bridge?

@vfsfitvnm vfsfitvnm added the question A question about anything label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about anything
Projects
None yet
Development

No branches or pull requests

2 participants