I can map buttons on a gamepad like this:

Joy2::
Send {Up down}  ; Hold down the left-arrow key.
KeyWait Joy2  ; Wait for the user to release the joystick button.
Send {Up up}  ; Release the left-arrow key.
return

However I want to remap the directional pad to do the same thing instead. How can I do this?

link|improve this question

65% accept rate
feedback

1 Answer

up vote 5 down vote accepted

Auothotkey Joystick axis tutorial; http://www.autohotkey.com/docs/KeyList.htm#Joystick

Or you could use KeyHistory to find what the Autoit name of the key is;

key_detect.ahk:

!k::
#InstallKeybdHook
KeyHistory
return

Run, press Alt+K. Brings up list of keys detected.

link|improve this answer
good answer, handy tip! – Boinst May 11 at 2:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.