What you can do with Gamepad Tester
- Test controller buttons online
- Check for analog stick drift
What this hardware diagnostic tests
Read the button and axis values exposed by the browser Gamepad API and flag axes whose absolute value exceeds a simple threshold.
Example input
Connect a supported controller and press a button to expose its Gamepad API stateExample output
Controller detected | Button indicators: 16 | Axis 0: +0.02 | Axis 1: -0.01 | Status: No stick drift detectedPractical workflow
- Connect your game controller to your computer via USB cable or Bluetooth, then press any button to wake the Gamepad API.
- Watch the numbered button indicators change when you press controller buttons.
- Read the raw axis values and keep each stick centered to check whether an axis exceeds the tool's 0.08 threshold.
- Treat a Possible drift indicator as a simple value warning; it does not identify a worn component or diagnose the controller.
Common use cases
- Checking whether a browser detects a connected controller after a button press.
- Observing button activity and raw axis offsets before launching a game.
- Comparing controller input exposed by different browser and operating-system combinations.
Important notes and limitations
- Polls navigator.getGamepads() on animation frames; actual update cadence depends on browser scheduling and display refresh.
- The tool displays the browser's button and axis arrays. It does not show analog button pressure percentages, test rumble, or provide custom Xbox/PlayStation layouts.
HTML5 Gamepad API & Joystick Diagnostics
Calibrate joystick and buttons with jstest (Linux)
jstest /dev/input/js0Displays live numerical axis deflection values (-32767 to +32767) and button binary states in terminal.
Stick drift & deadzone troubleshooting
Controller connected via Bluetooth but undetected by browser Gamepad API
Cause: HTML5 Gamepad API security policy requires the user to press a physical button before granting access.
Solution: Press any button on the gamepad after connecting so the browser dispatches the 'gamepadconnected' event.
Thumbstick wandering without touch (Stick Drift)
Cause: Wear and tear on potentiometer carbon tracks inside the analog stick assembly.
Solution: Increase software deadzone threshold (e.g. 0.05 to 0.12) or upgrade to Hall Effect magnetic sensor sticks.
Continue your workflow
- Keyboard Tester — test physical keyboard inputs and rollover.
- Mouse Tester — test mouse buttons, scroll wheel, and tracking.
Frequently asked questions
What is analog stick drift and how does this tool measure it?
The tool marks an axis as possible drift when its absolute value is greater than 0.08 while the stick is expected to be centered. This threshold is not a diagnosis of worn hardware and may not match a controller's own deadzone.
Why doesn't my controller appear immediately when plugged in?
Some browsers expose a newly connected controller only after a button press, as a privacy measure. Detection also depends on the browser, operating system, and controller connection.
Does the tool support PlayStation 5 DualSense and Xbox Series X controllers?
The browser Gamepad API can expose controllers connected over USB or Bluetooth, but support and recognition vary by browser, operating system, and controller. This tool does not guarantee detection on every device.