# Gamepad Tester

> The Gamepad Tester uses your browser’s Gamepad API to show every button, trigger and analog stick on a connected controller in real time. It helps you spot stick drift with a deadzone view, test vibration where supported and check several controllers at once.

URL: https://atechcraft.com/gamepad-tester/
Category: Device and Hardware Tests
Last updated: 2026-12-01
Author: Abdul Moid Khan, ATechCraft

Runs in your browser. Your data never leaves your device.

## How to use the Gamepad Tester

1. Connect your controller by USB or Bluetooth.
2. Press any button on it so the browser detects it.
3. Press each button and move both sticks and triggers; the display updates live.
4. Let go of the sticks and look at their resting values to check for drift.
5. Press Test vibration to check rumble if your browser supports it.

## What is a gamepad tester?

A gamepad tester shows, in real time, exactly what your game controller is sending to your computer: every button press, how far each trigger is pulled and where each analog stick is pointing. It works with Xbox, PlayStation, Nintendo Switch Pro, 8BitDo and most generic USB or Bluetooth controllers. Use it to diagnose stick drift, find a button that has stopped working, check a second-hand controller before you buy it, or confirm that a new controller is detected at all.

## How does the gamepad tester read my controller?

Browsers include the **Gamepad API**. Once a controller is connected and you press a button, `navigator.getGamepads()` returns an object for each controller with two lists:

- **buttons**: each has `pressed` (true or false) and `value` from 0 to 1. Digital buttons are 0 or 1; analog triggers report every point in between.
- **axes**: numbers from -1 to +1. On a standard layout, axes 0 and 1 are the left stick (X and Y) and axes 2 and 3 are the right stick. Up is negative Y.

The tester reads these values every frame (usually 60 times per second or more) and redraws the screen whenever something changes. For privacy, browsers hide controllers until you press a button on one while the page is open, so websites cannot silently detect connected devices. See the [W3C Gamepad specification](https://www.w3.org/TR/gamepad/) and [MDN's Gamepad API guide](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API).

## Standard button numbers

When a controller uses the "standard" mapping, the numbers mean the same thing on every brand:

| Button | Xbox | PlayStation |
| --- | --- | --- |
| B0 | A | Cross |
| B1 | B | Circle |
| B2 | X | Square |
| B3 | Y | Triangle |
| B4 / B5 | LB / RB | L1 / R1 |
| B6 / B7 | LT / RT (analog) | L2 / R2 (analog) |
| B8 / B9 | View / Menu | Share (Create) / Options |
| B10 / B11 | Left / right stick click | L3 / R3 |
| B12 to B15 | D-pad up, down, left, right | D-pad up, down, left, right |
| B16 | Xbox button | PS button |

If the tester says "mapping: non-standard", the browser does not recognise the layout and button numbers may be in a different order.

## How do I check for stick drift?

Stick drift is when the character or camera in a game moves even though you are not touching the stick. It happens when the sensors inside the stick wear out or collect dirt.

**Worked example.** You connect a two-year-old controller and let go of both sticks. The display shows:

- Left stick: **0.00, 0.01**
- Right stick: **0.14, -0.09**

The left stick is fine. The right stick rests at about 0.17 from the centre (√(0.14² + 0.09²) ≈ 0.17). That is drift. In the stick drawing, the grey dot (raw position) sits away from the centre. Move the **deadzone** slider to 0.20: the green dot (what a game with that deadzone would use) snaps back to the centre. So a game with a 0.20 deadzone would hide the drift, at the cost of ignoring very small stick movements.

As a rule of thumb, resting values under about 0.05 are normal, 0.05 to 0.10 is slight wear, and anything above 0.10 that wanders over time is noticeable drift. These are practical guides, not manufacturer specifications.

## Can I test vibration?

Press **Test vibration**. In Chrome and Edge, most Xbox and PlayStation controllers will rumble for under a second. Firefox and Safari have limited or no support for rumble from web pages, and some third-party controllers ignore it. The tool tells you if the browser reports no vibration support.

## Tips for fixing common controller problems

- **Not detected:** press a button with the page focused, try a USB cable, and check that Steam or another app is not taking exclusive control.
- **Drift:** blow compressed air around the stick base and rotate the stick in full circles for a minute. If it persists, many manufacturers repair or replace drifting controllers under warranty.
- **Sticky buttons:** a little isopropyl alcohol on a cotton bud around the edge of the button, with the controller off, often helps.
- **Several controllers:** connect them all and press a button on each; every controller gets its own panel.

## Limitations

The browser cannot read motion sensors (gyroscope), touchpads, adaptive triggers or battery level on most controllers. Polling is tied to the browser's frame rate, so very short taps of a few milliseconds might be missed by the display, although games read controllers in a similar way.

Testing a full gaming setup? Check your keyboard with the [Keyboard Tester](https://atechcraft.com/keyboard-tester/), your mouse speed with the [CPS Test](https://atechcraft.com/cps-test/), your monitor with the [Refresh Rate Test](https://atechcraft.com/refresh-rate-test/), and your own reflexes with the [Reaction Time Test](https://atechcraft.com/reaction-time-test/).

## Frequently asked questions

### Why is my controller not detected?

For privacy, browsers only reveal a gamepad after you press a button on it while the page is open. Also check that it is paired, charged and recognised by your system, and try a USB cable.

### How do I check for stick drift?

Let go of both sticks and watch the axis values. A healthy stick rests close to 0.00; values that stay above about 0.10 or slowly wander suggest drift. Games hide small drift with a deadzone, which you can preview with the slider.

### Does vibration work in every browser?

No. Chrome and Edge support rumble for most Xbox and PlayStation controllers. Firefox and Safari have limited or no support, so the tool tells you if vibration is unavailable.

### Why are button numbers different from the labels on my controller?

Browsers use the "standard" gamepad mapping, where button 0 is the bottom face button (A on Xbox, Cross on PlayStation). Controllers that are not mapped as standard may show buttons in a different order.
