- Home
- Docs
- ZeroTrace HID
- Gamepad Commands
ZeroTrace HID
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: Presses and holds a gamepad button.
Syntax:
pressButton '<button>'
Example:
pressButton 'A'
pressButton 'TL'
Advanced 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 // Center
Special Functions
Description: Rapidly taps a button multiple times.
Syntax:
rapidFire '<button>' <times> <intervalMs>
Example:
rapidFire 'A' 10 100 // Press A 10 times with 100ms intervals