Skip to main content
Map gamepad (controller) axes and buttons to MuJoCo actuators. Supports deadzones and scaling.

Signature

Usage

Config

Standard Gamepad Axes

Standard Gamepad Buttons

Notes

  • Uses the Gamepad API
  • Gamepad state is polled each frame via navigator.getGamepads()
  • Axes values are in the range [-1, 1] after deadzone filtering
  • Button values map to [0, 1] (pressed = 1)