Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .