Input & Interaction
Gamepad API
Connect and read USB/Bluetooth gamepad joystick & button controller inputs.
Checking support...
Feature Not SupportedThis browser does not support the Gamepad API Web API feature. Try testing in a modern browser (such as Chrome, Edge, Safari, or Firefox).
Advertisement
Interactive Input Workspace
Ready for input
Web API Execution Output
Result output will be displayed here after processing...
Native JavaScript Code Example (Zero Libraries)
const gamepads = navigator.getGamepads(); if (gamepads[0]) console.log(gamepads[0].buttons);
About the Gamepad API Web API
Gamepad API provides direct read access to connected gaming controllers.
Specification:W3C & WHATWG Web API Standard
Sponsored Content