在游戏手柄上使用自动热键

Phe*_*nom 3 autohotkey game-controller

我可以像这样映射游戏手柄上的按钮:

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
Run Code Online (Sandbox Code Playgroud)

但是我想重新映射方向键来做同样的事情。我怎样才能做到这一点?

RJF*_*ner 5

Autohotkey Joystick 轴教程; http://www.autohotkey.com/docs/KeyList.htm#Joystick

或者您可以使用 KeyHistory 查找密钥的 Autoit 名称;

key_detect.ahk:

!k::
#InstallKeybdHook
KeyHistory
return
Run Code Online (Sandbox Code Playgroud)

运行,按 Alt+K。调出检测到的键列表。