🎮 Gamepad Commands
Gamepad Controls
Supported Buttons
| Button Name | Aliases | Description |
|---|---|---|
A | SOUTH | Primary action button |
B | EAST | Secondary action button |
C | - | Tertiary action button |
X | NORTH | Auxiliary button 1 |
Y | WEST | Auxiliary button 2 |
Z | - | Auxiliary button 3 |
TL | - | Top left shoulder button |
TR | - | Top right shoulder button |
TL2 | - | Left trigger (analog) |
TR2 | - | Right trigger (analog) |
SELECT | - | Select/back button |
START | - | Start/menu button |
MODE | - | Home/guide button |
THUMBL | - | Left thumbstick click |
THUMBR | - | Right thumbstick click |
D-Pad (Hat) Positions
| Position | Description |
|---|---|
CENTER | Neutral position |
UP | Up direction |
UP_RIGHT | Up-right diagonal |
RIGHT | Right direction |
DOWN_RIGHT | Down-right diagonal |
DOWN | Down direction |
DOWN_LEFT | Down-left diagonal |
LEFT | Left direction |
UP_LEFT | Up-left diagonal |
Basic Controls
Description: Sets D-Pad (hat) position.
Syntax:
hat '<position>'Example:
hat 'UP_LEFT'
hat 'CENTER' // Returns to neutralAdvanced Controls
Description: Sets left analog stick position (-127 to 127).
Syntax:
leftStick <x> <y>Example:
leftStick 100 0 // Full right
leftStick 0 -100 // Full up
leftStick 0 0 // CenterDescription: Sets right analog stick position (-127 to 127).
Syntax:
rightStick <x> <y>Example:
rightStick -50 50 // Diagonal left-downDescription: Sets left trigger value (0-255).
Syntax:
leftTrigger <value>Example:
leftTrigger 255 // Full pressDescription: Sets right trigger value (0-255).
Syntax:
rightTrigger <value>Example:
rightTrigger 128 // Half pressDescription: Presses multiple buttons simultaneously.
Syntax:
comboPress '<button1,button2,...>'Example:
comboPress 'A,B' // A+B combo
comboPress 'TL,TR' // Both shoulder buttonsDescription: Releases all pressed buttons.
Syntax:
comboReleaseExample:
comboPress 'X,Y'
delay 1000
comboReleaseSpecial Functions
Description: Rapidly taps a button multiple times.
Syntax:
rapidFire '<button>' <times> <intervalMs>Example:
rapidFire 'A' 10 100 // Press A 10 times with 100ms intervalsDescription: Moves sticks in circular pattern.
Syntax:
sweepSticks <amplitude> <steps> <delayMs>Example:
sweepSticks 100 36 50 // Full circle with 36 stepsDescription: Briefly presses D-Pad direction.
Syntax:
tapDpad '<direction>' <delayMs>Example:
tapDpad 'UP' 300 // Hold up for 300msDescription: Resets all controls to neutral state.
Syntax:
resetExample:
reset // Centers sticks and releases all buttons