Skip to content

Instantly share code, notes, and snippets.

@willwade
Created August 6, 2024 15:37
Show Gist options
  • Save willwade/b14156bc75b39d8ce01e255c91dd7ff0 to your computer and use it in GitHub Desktop.
Save willwade/b14156bc75b39d8ce01e255c91dd7ff0 to your computer and use it in GitHub Desktop.
joystick 2 number pad. Use with mouse keys if you wo wish
; Initialize variables for joystick
JoyUp:: ; Joystick up
JoyDown:: ; Joystick down
JoyLeft:: ; Joystick left
JoyRight:: ; Joystick right
; Map joystick directions to numpad keys
JoyUp::
Send {Numpad8}
return
JoyDown::
Send {Numpad2}
return
JoyLeft::
Send {Numpad4}
return
JoyRight::
Send {Numpad6}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment