Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|improve this answer
    
good answer, handy tip! –  Boinst May 11 '12 at 2:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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