I am using an X-Arcade to control games in my cabinet which has the buttons act as keyboard strokes (left is numpad4, right is numpad6, etc.).
The fiance seems to have trouble with the concept of using the joystick and arcade buttons to control old NES, SNES, and Genesis games. I decided I would try to use autohotkey to assign joypad controls to the keyboard strokes used by the X-Arcade, thereby allowing both input methods to do the exact same thing (and letting anyone use either option when playing games on the cabinet).
However, I have run into some trouble. I have used a script I found to figure out what each joypad button corresponds to as an Autohotkey command. I had these commands send the appropriate keystroke. I cannot figure out how to map the D-pad, which is listed as POV27000 for left, POV9000 for right, POV0 for up, and POV18000 for down.
Entering these in as buttons does not work (autohotkey does not recognize them). I also tried the following:
#IfWinActive ahk_class KegaClass
If JoyPOV = 9000::
Send {Numpad6 down}
KeyWait JoyPOV
Send {Numpad6 up}
I think I might be on the path here (all this scripting is new to me) but I probably wrote it out improperly. Does anyone know what I am missing here?
Thanks,
Matt