Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Execute on gamepad #8

Closed
Weaver24251 opened this issue Feb 6, 2021 · 3 comments
Closed

Execute on gamepad #8

Weaver24251 opened this issue Feb 6, 2021 · 3 comments

Comments

@Weaver24251
Copy link

Can this script be use on a pc gamepad while playing?

@256shadesofgrey
Copy link
Owner

I haven't tried it, but theoretically yes. You will need to adjust the keybinds accordingly.

@Weaver24251
Copy link
Author

What should I write to replace the keyboard keys for the gamepad buttons?

Thanks!

@256shadesofgrey
Copy link
Owner

256shadesofgrey commented Feb 6, 2021

Adjust the values starting at this line:

global attack := "LButton"

According to this: https://www.autohotkey.com/docs/KeyList.htm#Joystick

They also offer a test script there to figure out what button corresponds to which number in autohotkey. There is a link to it at the end of the "Joystick" section.

Note: some controllers do not work with this. For example PS4 controllers are not recognized by autohotkey. Whether yours will work you can test with the aforementioned test script.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants