Skip to content
UniKit

Gamepad Test

Plug in a controller and test it: the page polls navigator.getGamepads() every 100 ms, lights up each pressed button, records which of the 16 buttons you have pressed, shows live stick and trigger values, derives drifting axes and a suggested deadzone from measured axis values, and prints the Xbox / PlayStation / Switch naming table. With no controller it plainly reports that none was detected.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Gamepad test

Plug the controller in (USB or Bluetooth) and press any button to wake it. The page reads navigator.getGamepads() every 100 ms: pressed buttons light up one by one and stick / trigger values update live. With no controller it only reports “no gamepad detected” — nothing is invented.

No gamepad detectedNo gamepad detected — connect one and try again: plug in USB or pair Bluetooth, then press any button to wake it.

The page only reads the buttons and axes exposed by navigator.getGamepads(); rumble strength, battery level and latency are not exposed by browsers and are therefore never shown.

No gamepad detected · connect one and try again
Samples
0
Buttons seen
0 / 16
Axes
0
Drifting axes
0
Suggested deadzone
0
Max trigger travel
—

Buttons pressed this run:0 / 16

While the page cannot read a gamepad this stays empty: connect one first, then press any button to wake it.

What this tool does

  • Run a brand new controller through its paces: hold each button for a second and the “buttons seen” figure grows — one glance tells you whether all 16 respond.
  • Check stick drift: let go of the sticks for a few seconds and read the drifting axes plus the suggested deadzone; both come from real axis values, not estimates.
  • Measure trigger travel: squeeze LT / RT fully and “max trigger travel” shows the largest value actually read, revealing line-up and whether the axis saturates.
  • Verify button naming: Xbox, PlayStation and Switch use different names for the same index; the mapping table goes by index so you never mix them up.

Example

Input

Plug in an Xbox controller, hold A, B and RT for a second each, then leave the sticks untouched

Output

Connected Xbox Wireless Controller · 96 samples · 3 / 16 buttons pressed · 1 drifting axis
Buttons seen: A (index 0) · B (index 1) · RT (index 7, travel 0.98)
Drifting: LSX 0.21 → suggested deadzone 0.26; the 13 untouched buttons stay listed as idle.

Frequently asked questions

Why does nothing happen?

With no controller attached the page explicitly says “no gamepad detected — connect one and try again”; it never fills the table with dummy data. On some systems a controller only becomes visible to the page after a first button press, so press one and give it a second.

How are drift and the suggested deadzone computed?

The polling loop records each axis’s largest absolute value: anything beyond the deadzone but below the edge (< 0.9) counts as a drift candidate, and the suggestion is the largest observed drift + 0.05, capped at 0.5. Both are measurements, not tuned coefficients.

Is the button naming accurate?

The table maps the 16 standard Xbox indices to PlayStation and Switch names, so one index always means one physical button across all three schemes. Drivers can report a different order, so the index shown on the page is authoritative.

Why no rumble, battery or latency?

Browsers expose only buttons and axes (plus vibrationActuator on some), so rumble strength, battery level and polling latency simply cannot be read. What the page cannot read, it does not show.

Keywords:gamepad testXboxPlayStation

Related tools