How to test a flight stick, HOTAS or racing wheel in your browser
Browsers report every axis of a game device as a number from −1 to 1, in an order the browser chooses. Assign the controls yourself, then check centre, range and jumps; force and rotation angle are not available.
By HZBench editorial teamPublished:
Joysticks, throttles, rudder pedals, steering wheels and button boxes can reach a web page through the Gamepad API, which is specified as a W3C Working Draft [1]. Not every device makes it: whether a joystick appears at all, and how many of its controls appear, depends on the browser, the operating system and the device's driver. When a device is exposed, the browser reports a list of axes and a list of buttons, and every axis value is normalised to the range −1 to 1 [1][3].
Why axis numbers cannot be trusted
Only devices that match the Standard Gamepad layout get the mapping "standard" [4]; for these, axis 0 and 1 are the left stick. Everything else is listed "in some order determined by the user agent" [1]: the specification only recommends that the most important axes come first and that X comes before Y. A HOTAS throttle can therefore be axis 2 on one computer and axis 5 on another, and a pedal can rest at −1 or at +1. A tester that assumes axis 0 is roll gives wrong answers for many devices.
HZBench Input Lab assumes nothing. It asks you to push the stick forward, tilt it right, twist it, move the throttle, turn the wheel and press each pedal, and assigns the axis that moved most. If a control moves the wrong way, you can reverse it, and every assignment can be changed in a list.
What the readings mean
| Reading | What it shows |
|---|---|
| Offset at rest | Where a released control sits: near 0 for a centred stick or wheel, near its resting end for a pedal or throttle. Shown in % of full travel. |
| Jitter at rest | How much the value moves while nobody touches the device. |
| Deadzone that would hide it | The smallest deadzone a game would need so the resting signal does nothing, using the same rule as the controller test: just above the largest reading at rest. |
| Travel reached | The furthest values seen while you moved each control through its full range. |
| One-frame jumps | A value that jumps away and straight back between two readings. It is a lead, not proof of a fault: the page reads the device about once per frame, so a very fast real flick can produce the same pattern. Look for jumps that repeat while the control is not touched. |
Browsers do not send an event for every change of an axis; pages are expected to read the current state about once per frame [2]. That is how HZBench reads the device too, so a glitch shorter than one frame can be missed, and the counts describe what the page saw, not what the device sent internally.
Hat switches and pedals
Hat switches are reported in different ways. Some devices send them as four or eight buttons, which simply appear in the button list. Others send one axis with a fixed value per direction and a separate value outside −1…1 when the hat is released. HZBench recognises only that second pattern: it counts the directions you reached and never treats such an axis as a range. A hat reported any other way (for example as two axes) shows up as ordinary axes, and the hat check then reports no hat. Pedals and throttles are measured from the end they rest at, so a brake that rests at +1 and a throttle that rests at −1 are both shown as 0 to 100% pressed. Combined rudder or pedal axes, where two pedals share one axis, cannot be split by the browser and are shown as one centred axis.
Before and after
- Assign the controls and run the 3-second measurement at rest, then move every control through its full travel.
- Save the reading. It stays in this browser and is linked to this device and tool.
- Change one thing: recalibrate in the driver, clean a pot, swap the cable or USB port, update the firmware.
- Measure and save again. HZBench compares only readings with the same reported device name, tool, method and axis assignment, and only after you confirm both came from the same physical unit: the browser reports a model name, so two units of one model look identical.
- Better or worse is decided with fixed thresholds per reading (for example 1 percentage point for the offset at rest). Smaller changes are shown as below the comparison threshold; the thresholds are not a measured variation of your device.
Limits
- Browsers expose a device only after you press a button or move a control on it, while the page is in front [1][2].
- Force, torque, wheel rotation in degrees and full force-feedback effects are not available to web pages, so they are not tested.
- Some devices do not expose all their controls to browsers, and the order and number of axes can change with the driver.
- The values are what the browser receives, not the sensor's internal resolution. Use them to compare one device with itself before and after a change.
Sources
- [1] Gamepad (W3C Working Draft, 19 November 2026), W3C (accessed )
- [2] Using the Gamepad API, MDN Web Docs (accessed )
- [3] Gamepad: axes property, MDN Web Docs (accessed )
- [4] Gamepad: mapping property, MDN Web Docs (accessed )