Skip to content

ZeroTrace HID

Gamepad Emulation

Emulate a USB gamepad with buttons, sticks, and D-Pad

ZeroTrace HID can present itself as a USB HID gamepad. The descriptor matches a generic Xbox-style controller and is recognized natively by Windows, macOS, Linux, Android, and iOS without drivers.

Inputs

ControlRange / values
ButtonsA, B, X, Y, L1, R1, L2, R2, Start, Select, Home (digital)
Left stickX / Y axes, signed -127 to 127
Right stickX / Y axes, signed -127 to 127
D-Pad (Hat)Up, Up-Right, Right, Down-Right, Down, Down-Left, Left, Up-Left, Neutral

Script primitives

gamepad press A          # press and release
gamepad hold L2 1500     # press, hold 1500 ms, release
gamepad stick left 100 -50    # left stick to x=100 y=-50
gamepad hat upright
gamepad rapidfire B 10 50     # tap B 10 times, 50 ms gap

Mix gamepad commands with delay, repeat, and conditional IF blocks for full payloads.

Use cases

  • Test a game's input handling at sub-frame precision.
  • Drive an automation script that needs gamepad input alongside keyboard (e.g. lobby scripts in arcade environments).
  • Bypass input restrictions in kiosks that whitelist gamepad-class devices.

The gamepad descriptor is selectable in Settings → HID Mode alongside keyboard, mouse, and MSC.