Gamepad Tester

๐ŸŽฎ Gamepad Controller Mapping & Test

Gamepad Button Test is an easy tool that helps you check if your controller is working properly. Just connect your gamepad, press the buttons, and see instant feedback on the screen. Itโ€™s a quick way to spot stuck, failed, or unresponsive buttons. Best of all, it runs in your browserโ€”no downloads or setup needed.

Quick Start

  1. Connect Controller: Plug in via USB or pair via Bluetooth. Wired connections usually give the most consistent results.
  2. Detect: Click Detect Controller. If the controller doesn't appear, try pressing a button to "wake" it.
  3. Discover: Use Discover mode to press buttons and move sticks; the tool will record mappings.
  4. Map / Test: Create custom assignments in Map mode and verify them in Test mode.
  5. Export: Export JSON, CSV, SDL, or RetroArch files for use in other tools.

Controls

Controller: None Connected
Status: Stopped
Mode: Discover
Progress: 0%

Export Options

Interactive Controller Map

Press any button or move any stick/trigger to discover controller mappings

No input detected

Mapping Details

Buttons

No controller detected--

Axes & Triggers

No controller detected--

Advanced Details

Complete Guide: Controller Mapping, Standards, and Best Practices

Introduction โ€” Why Mapping Matters

Controllers are ubiquitous across gaming platforms, but the way they expose inputs to systems and applications can vary significantly. A button labeled โ€œAโ€ on one controller may appear as a different identifier in another environment. Controller mapping is the process of translating hardware inputs into consistent software-understandable actions. Accurate mapping ensures compatibility, reduces surprises during gameplay, and makes controllers accessible to diverse players including those with accessibility needs.

Understanding the Gamepad API

The W3C Gamepad API is a browser feature that exposes connected gamepads to web applications. It reports two primary types of data: buttons (with boolean pressed and numerical value) and axes (numeric values typically between -1.0 and +1.0). While the API attempts standardization, differences in firmware, OS drivers, and vendor-specific behaviors mean developers and testers should always verify mappings for each controller.

Getting Started โ€” Step-by-step Setup

Connect and Detect

Connect your controller by USB or pair via Bluetooth. For best results, use a wired connection during mapping to avoid wireless latency or disconnections. After plugging in, click Detect Controller. If nothing appears, press any button on the controller to wake it. On some browsers, an initial user gesture (click or keypress) may be needed to allow Gamepad API access.

Discover Mode

Discover mode listens to raw hardware inputs. Press every button, wiggle both sticks through their full range, and squeeze triggers gradually. This tool will record which hardware index maps to which standard name (A, B, X, Y, D-Pad directions, triggers, etc.). Record multiple passes to confirm consistency โ€” some controllers behave differently when used alone versus combined (e.g., Joy-Cons).

Map Mode

Map mode allows you to build friendly mapping profiles: assign a hardware input to a game function (jump, shoot, menu, etc.). Consider ergonomics: map frequently used actions to comfortable buttons. For accessibility, consolidate actions for one-handed users and provide toggles for hold-vs-tap behavior.

Test Mode

After mapping, use Test mode to verify each assignment responds as expected. Pay attention to edge cases: simultaneous inputs, long presses, and sequences. Use the Export options to generate configuration files for other tools or to back up your profiles.

Interpreting Mapping Output

Mapping tools show the hardware index (e.g., button 0, axis 2) and suggested friendly names. Keep in mind:

  • Buttons often carry both boolean (pressed) and analog value (0โ€“1) for triggers.
  • Axes report floats; sticks use two axes (X and Y). Values near 0 indicate centered position.
  • Dead zones are required to filter out drift โ€” pick conservative center dead zones and test edges to ensure full range.

Troubleshooting Common Problems

Controller Not Detected

Symptoms: tool shows no device. Steps: ensure cable and pairing, test in OS device manager, try different USB port, press buttons to wake controller, and try another browser. If using an adapter, ensure drivers are installed.

Wrong or Swapped Buttons

Symptoms: face buttons produce unexpected actions. Steps: use Discover to list raw assignments, create a mapping profile to remap buttons. Some controllers (especially region-specific ones) invert A/B or X/O โ€” mapping fixes that at the application level.

Analog Issues & Dead Zones

Symptoms: sticks don't return to center, triggers not registering full range. Steps: measure min/max during mapping, set dead zone and edge compensation. If hardware is worn, consider calibration utilities or repair.

Advanced Topics

Macros & Combos

Map single inputs to multiple outputs or sequences. Useful for accessibility or automating repetitive actions. Implement with care to avoid violating online game terms of service โ€” macros can be considered cheating in competitive contexts.

Accessibility Mapping

Accessibility remapping reduces strain and enables players with mobility differences to play. Consider large-action consolidation, single-hand mappings, and toggles for hold vs. tap. Export and share accessible profiles so others can benefit.

Export Formats Explained

JSON

Comprehensive, contains metadata and discovered mappings. Use for programmatic imports and backup.

CSV

Tabular, great for spreadsheets and manual editing.

SDL Mapping

SDL (Simple DirectMedia Layer) mapping strings are often used for cross-platform compatibility and emulator configs. This tool generates basic SDL strings from discovered mappings.

RetroArch

Specialized configuration for RetroArch frontends; includes analog settings, button binds, and hotkeys.

Pro Tips & Best Practices

  • Keep a library of profiles per controller model and per target game/system.
  • Document baseline mappings and save pre/post-maintenance exports.
  • Test profiles in the actual game or emulator to validate real-world behavior.
  • When sharing profiles, include controller model, firmware version, and OS notes.

Disclaimer

Diagnostic & Configuration Only: This tool reads data locally โ€” it does not change controller firmware or system-level mappings. Exported files are provided as-is; test before relying on them in critical scenarios. Disassembling controllers may void warranties; proceed with caution.

Key Note: For the most accurate results, connect your controller with a USB cable instead of Bluetooth. This helps avoid signal delays and gives you a clearer test outcome.