GamepadToKeyboard

🔙 Back
# 🎮 GamepadToKeyboard

🕹️ Emulate mouse and keyboard input with your gamepad in a quick, easy and highly customizable manner.

⚠️ GamepadToKeyboard requires an Xinput controller (native or emulated via tools like DS4Windows, DualSenseX, x360ce, etc.).

📝 Controller configuration

🔄 Live config reload

🕹️ Button assignments

Values you can assign to the buttons:

📘 Syntax

Example syntax:

Button Assignment   ‎Button Assignment Button Assignment ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎
A Enter   Back F1   LSup Up  
B [Turbo] Space   Start Esc   LSdown Down  
X [ComboAsync] S, Space,r   LS [Toggle]LShift   LSleft Left  
Y [COMBO]A,x,F,LBmouse   RS [execute] calc.exe   LSright Right  
LB RBmouse   Dup Up   RSup    
RB LBmouse   Ddown Down   RSdown    
LT Wheelup   Dleft Left   RSleft    
RT WheelDown   Dright Right   RSright    
Home Lwin              

⚙️ Common controller options

Section Option Values / Description
     
Mouse AnalogToMouse 1/0 : Turn On/Off the mouse movement via analog sticks.
  Stick RS/LS : Analog to use. Button assignments ignored.
  Deadzoneshape 1/2/3 : Square/Rectangular,Circular,Circular (with rescale).
  DeadzoneType 1/2/4 : Both axis/ per axis/ per direction.
  (Stick)AxisInverted 1/0 : Turn On/off axis inversion. 4 options available.
  Sensitivity Value : Mouse movement speed.
Analogs DeadzoneType 1/2/4/8: Both sticks/ per stick/ per axis/ per direction.
  (Stick)AxisInverted 1/0 : Turn On/off axis inversion. 4 options available.
Other SendKeysTypes 1: Game mode; 2: Desktop (with windows-style keypress delay + repeat)


🧪 Technical Notes

⚠️ Notes


If you enjoy GamepadToKeyboard, you can buy me a coffee. It will be very appreciated ;)

ko-fi


⌨️ List of assignable keys

SPACE, ENTER, ALT, BACKSPACE, BS, DELETE, DEL, UP, DOWN, LEFT, RIGHT, HOME, END, ESCAPE, ESC, INSERT, INS, PGUP, PGDN, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TAB, PRINTSCREEN, LWIN, RWIN, NUMLOCK on, CAPSLOCK off, SCROLLLOCK toggle, BREAK, PAUSE, NUMPAD0, NUMPAD1, NUMPAD2, NUMPAD3, NUMPAD4, NUMPAD5, NUMPAD6, NUMPAD7, NUMPAD8, NUMPAD9, NUMPADMULT, NUMPADADD, NUMPADSUB, NUMPADDIV, NUMPADDOT, NUMPADENTER, APPSKEY, LALT, RALT, LCTRL, RCTRL, LSHIFT, RSHIFT, SLEEP, ASC nnnn, BROWSER_BACK, BROWSER_FORWARD, BROWSER_REFRESH, BROWSER_STOP, BROWSER_SEARCH, BROWSER_FAVORITES, BROWSER_HOME, VOLUME_MUTE, VOLUME_DOWN, VOLUME_UP, MEDIA_NEXT, MEDIA_PREV, MEDIA_STOP, MEDIA_PLAY_PAUSE, LAUNCH_MAIL, LAUNCH_MEDIA, LAUNCH_APP1, LAUNCH_APP2, OEM_102


🎖️ Credits

This gamepad script was written in AutoIt.
The program makes use of a remodified version of the XInput UDF by Oxin8 (xoninx@gmail.com) to read Xinput states.