Web APIs

Gamepad API

Checking compatibility...

Access and respond to signals from gamepads and game controllers in a simple, consistent way. Perfect for web-based games, simulations, and interactive experiences.

Gamepad Simulator

No gamepad? Use these controls to simulate one for testing.

Gamepad Detection

See how websites can detect when you connect or disconnect a game controller, allowing games to recognize your device as soon as you plug it in.

=
=
=
=
=
=

Output

Click Run to see output...

Reading Gamepad State

Watch how websites can check which buttons you're pressing and how far you're moving the joysticks on your controller, essential for responsive gameplay.

=
=
=
=
=
=

Output

Click Run to see output...

Continuous Monitoring

Experience how games can continuously track your controller inputs in real-time, allowing for smooth character movement and immediate response to your actions. Connect gamepag before launching this demo.

=
=
=
=
=
=

Output

Click Run to see output...