Guest Posted April 10, 2021 Share Posted April 10, 2021 Hello, I want to bind 2 gamepad buttons for mapping TAB using AHK. I want to do this for MAME ( pressing TAB it shows Menu ). I can do it with just 1 button and works good. This is the script I use for 1 button Joy10:: If GetKeyState("Joy10") { SetKeyDelay, -1, 110 Send {TAB} } Return How to do it with 2 buttons? Thanks Quote Link to comment Share on other sites More sharing options...
neil9000 Posted April 10, 2021 Share Posted April 10, 2021 You can just do this directly in MAME itself, no scripts needed. I bring up that screen with back/select and Y. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2021 Share Posted April 10, 2021 How? Here MAME doesn't allow me to bind 2 buttons togheter. It allows me to bind more than a button for a command but not 2 pressed at same time. Quote Link to comment Share on other sites More sharing options...
neil9000 Posted April 10, 2021 Share Posted April 10, 2021 6 minutes ago, nohero said: How? Here MAME doesn't allow me to bind 2 buttons togheter. It allows me to bind more than a button for a command but not 2 pressed at same time. Just set the press the two buttons you want to use in quick succession, then two buttons should show. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2021 Share Posted April 10, 2021 (edited) No, I already tried that. Will work one button at time and could seems they are working pressed togheter but it's not since they are mapped for same command so they work separately too. I need 2 buttons pressed at same time because they do different things if pressed separately. That's why I asked for an AHK. Edited April 11, 2021 by nohero Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted April 10, 2021 Share Posted April 10, 2021 1 hour ago, nohero said: How to do it with 2 buttons? ;Joy9 needs to be pressed first, then Joy10 Joy10:: If GetKeyState("Joy9") { SetKeyDelay, -1, 110 Send {TAB} } Return Change or swap the 2 buttons accordingly to fit your needs. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2021 Share Posted April 10, 2021 @JoeViking245 Thank you so much, it's what I was looking for! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.