Not TestedTesting not done, may not work properly
Input & Interaction

Gamepad API

Connect and read USB/Bluetooth gamepad joystick & button controller inputs.

Checking support...
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