Guide
How to Use a Controller With Browser Games: Xbox, PlayStation and More
Most modern browsers can read an Xbox or PlayStation controller directly, so many WASM games work with a pad as soon as you plug it in. The catch is that the browser only shows the pad to a page after you press a button. This guide covers how that works and what to do when it does not.
How the browser sees a controller
Browsers expose pads through the Gamepad API. A page can ask for the list of connected controllers, then read each frame which buttons are pressed and where the sticks sit. For privacy reasons the pad stays hidden until you press a button or move a stick while the tab is active. If a game says no controller found, press A or a face button once before assuming it is broken.
Standard pads such as the Xbox 360, Xbox One and Series controllers report in a layout called the standard mapping. Games that read that layout get consistent buttons. Pads that do not match it show up with a different numbering, which is where most mapping trouble starts.
Connecting an Xbox controller
Wired is simplest: plug in by USB and the browser should see it. For wireless, pair over Bluetooth on controllers that support it, which means the newer Xbox One S and later models. The older wireless dongle models need the dedicated adapter.
On Windows, the pad needs no extra driver for browser use. On a Mac, current macOS reads Xbox pads over Bluetooth and USB. On a Chromebook, Bluetooth pairing is in the system tray under Bluetooth settings.
Connecting a PlayStation controller
DualShock 4 and DualSense pads work over USB and Bluetooth in Chrome, Edge and Firefox on desktop. Hold the PS and Share buttons on a DualShock 4 until the light flashes to put it in pairing mode. On a DualSense, hold the PS and Create buttons.
Browsers label the buttons by position, not by symbol. The bottom face button is called button 0, which is Cross on PlayStation and A on Xbox. A game that shows A and B prompts on a PlayStation pad is not wrong, just using the Xbox labels.
Which games work well with a pad
Platformers, racers and fighters feel natural on a controller. A few entries in our list are worth trying with one.
Sonic CD and Super Mario 64 are good fits for the d-pad and analog stick. Fighting games like Tekken 5 and Street Fighter Alpha 2 are much easier on a pad than a keyboard. Racing titles benefit from analog triggers on throttle and brake.
Shooters are a different story. Counter-Strike 1.6 and Quake ports were designed for mouse aim and have limited or no gamepad support. Unless the page says otherwise, expect keyboard and mouse as the intended setup.
Emulated games versus native ports
Console games running in an emulator, such as the PS2 titles, usually map the pad to the original console layout. You often find a settings page in the emulator where you can rebind buttons and set the stick dead zones.
Ports of PC engines are the opposite. They read the keyboard first, and gamepad support depends on whether the person who built the port added it. Some use a translation layer that turns pad input into key presses, which works but cannot always match every action.
Fixing detection and mapping problems
If the pad is not detected, press a button with the game tab focused. Then try another USB port, unplug and replug, and close other apps that grab the controller, such as a launcher with its own input overlay. Disconnect the pad from any console or phone it is paired to, because Bluetooth pads connect to one device at a time.
If buttons are wrong, check whether the page offers a remap screen. If not, the pad may be using a non-standard layout. Controllers set to a compatibility mode or ones from third-party brands often have this issue, and switching them to XInput mode if they have a switch can fix it.
For stick drift, raise the dead zone in the game if there is a setting. If there is none, the pad itself may need cleaning or replacing.
Latency over Bluetooth is slightly higher than over a cable. For fighting games and timing-heavy platformers, wired is the safer choice.
A short setup checklist
Connect the pad first, then open the game page, then press a button once the canvas is focused. Doing it in that order avoids most detection problems. If you switch controllers mid-session, reload the tab so the game reads the new one.
Keep the pad charged. A Bluetooth controller that dips low can drop inputs before it disconnects, and that looks like a game bug.
FAQ
Why is my controller not detected?
The browser hides the pad until you press a button while the game tab is active. Press any button, and try a different USB port or reconnect if nothing appears.
Does a PS5 controller work in the browser?
Yes, the DualSense works over USB or Bluetooth in current Chrome, Edge and Firefox on desktop. The game labels may show Xbox button names.
Can I use a controller on Counter-Strike 1.6?
Support depends on the port and is not common. Keyboard and mouse is the expected setup for that game.
Can I remap buttons?
Only if the game or emulator has a remap menu. If it does not, an input remapping tool on your operating system can translate the pad to keys.
Does a controller work on a phone?
Many phones can pair a Bluetooth pad and a browser may read it, but results vary by phone and browser, and not every game supports touch layouts alongside it.









