Skip to main content

Gamepad Tester

AnsweredVerified By Gamepad TesterVerified By Gamepad Tester

What Do Axis 0 To 5 And Button Numbers Mean In The Gamepad Tester?

Asked by Dylan O.0 views

Using your gamepad tester for the first time. I see Axis 0, Axis 1, up to Axis 5 and buttons numbered 0 to 16 or so. Which is which on my controller? And why does my cheap pad show the triggers as axes 4 and 5 but my Xbox pad shows them as buttons?

Brand
Various
Model
Xbox controller and generic USB pad
Connection
USB-A
System
Windows 11
Browser
Chrome 150
Test used in this questionGamepad TesterLive test of every button, stick, trigger and axis on any controller
Open Free Test
Short Answer

With a standard layout, axes 0 and 1 are the left stick, 2 and 3 the right stick, and buttons 0 to 3 are the face buttons, with triggers as buttons 6 and 7 that also carry analog values. Controllers without a standard layout report their own order, which is why your cheap pad shows triggers as axes.

Verified By Gamepad TesterVerified By Gamepad Tester
Calder Wright
Calder WrightVerified Gamepad Tester team memberGamepad Tester Team
Front-End Web Architect And Gamepad API Lead · 13+ years experience · Answered Jul 15, 2026

Browsers describe controllers using a standard layout when they recognise the controller. In that layout, axis 0 is the left stick horizontal and axis 1 the left stick vertical, axis 2 and 3 are the right stick. Buttons 0 to 3 are the face buttons, bottom, right, left and top, then 4 and 5 are the bumpers, 6 and 7 the triggers, 8 and 9 the centre buttons, 10 and 11 the stick clicks, 12 to 15 the D-pad, and 16 the home button.

In that standard layout, the triggers are buttons that also carry an analog value from 0 to 1, which is how your Xbox controller appears.

When the browser does not recognise a controller, it reports the controller's own raw order instead, marked as a non-standard mapping. Many cheap pads in DirectInput mode report the triggers as extra axes, often 4 and 5, and their buttons in a different order. Nothing is wrong; it is just a different description.

A few practical notes. Vertical stick axes are usually negative when pushed up. Triggers reported as axes often rest at -1 rather than 0. And if a cheap pad has an X and D mode switch, X mode usually gives the standard layout.

Step By Step Fix
  1. Check whether the tester shows the controller with a standard mapping or a non-standard one.
  2. For standard mapping, use the layout above: axes 0 to 3 for sticks, buttons 0 to 16 for buttons.
  3. For non-standard mapping, press each button and move each stick to see its number.
  4. Expect triggers reported as axes to rest at -1 and reach 1 when fully pulled.
  5. Switch a dual-mode pad to X mode if you want the standard layout.

Tested on: Applies to all controllers in Chrome, Edge, Firefox and Safari. Layout per the W3C Gamepad specification's standard mapping.

Checked by Arjun Mehta on . How we verify answers

Did this fix your controller?
Was this answer helpful?
Share this guide

Community Replies 3

  • Accepted Solution
    Kieran HollisCommunity Member

    Finally understand why my pad's triggers rest at -1. Thanks for the clear list.

  • Dylan Okafor-SmithCommunity Member

    Switched my cheap pad to X mode and now it shows the standard layout like the Xbox pad. Makes sense now.

  • Ira BanerjeeCommunity Member

    Bookmarking this for when I build a controller overlay.

Add Your Reply

Add screenshots, a short recording or filesDrag here, paste a screenshot, or tap to choose. Up to 2 files, 8 MB each. JPG, JPEG, PNG, WEBP, GIF, TXT, LOG, PDF, JSON, MP4, WEBM
Calder Wright
Written and tested by

Calder WrightVerified Gamepad Tester team member

Front-End Web Architect And Gamepad API Lead at Gamepad Tester

Calder is a front-end web architect working with the HTML5 Gamepad API. His focus is the part most browser testers get wrong: reading a controller often enough, and timing it well enough, that the numbers on screen match what the hardware is actually sending. He writes the polling loops that capture analog trigger tension and stick travel without dropping samples, and renders them on 2D vector layouts that hold a steady 60+ FPS on ordinary laptops. On Gamepad Tester he maintains the main tester tool, the button test and the trigger pressure test, and reviews any answer that explains how a reading on this site should be interpreted.

Gamepad APIbrowser polling rateanalog trigger captureSVG and canvas renderingfront-end performance
  • 23 answers on Gamepad Tester
  • 13+ years experience
  • Maintains the browser-side test code on Gamepad Tester, including the polling loop used by the trigger pressure and stick drift tests.
  • Reviewed by Arjun Mehta

The Team Behind These Answers

All 40 specialists

Each answer is written by the specialist who owns that part of the hardware, tested on a real controller, and checked by a second team member. How we verify answers

Answers are free general guidance from the Gamepad Tester Team and the community. Opening a controller or replacing a thumbstick module can void your warranty, so check the maker's support or warranty first. Battery and soldering work carries a real risk of damage or injury.

Free Controller Tests

Every test runs in your own browser with the Gamepad API. No sign up, no download, and your controller data never leaves your device.

All tools

Read Next On The Gamepad Tester Blog

All articles

Latest From The Community

The newest replies from players and the Gamepad Tester Team.

All guides