Skip to content

The "Gamepad Tester" app has been designed to enable users to test the functionality of their gamepads across various devices

Notifications You must be signed in to change notification settings

andersondavid/gamepad-tester

Repository files navigation

Gamepad Tester

The "Gamepad Tester" is an application designed to verify and test the functionality of gamepads across different operating systems. It provides a simple and intuitive interface to check if gamepads are functioning correctly, ensuring all buttons and axes are responsive as expected.

gamepad tester

Technologies Used

This project was created using the following technologies:

How It Works

The recognition of the gamepad is achieved through the following code snippet:

window.addEventListener("gamepadconnected", (event) => {
  // All buttons and axes values can be accessed through
  const gamepad = event.gamepad;
});

Additionally, there is a loop using setInterval to continuously listen for button actions:

setInterval(() => {
  setGamepadInstance(
    navigator.getGamepads()[gamepad.index]
  );
}, 15);

Feel free to fork and use as you want.

About

The "Gamepad Tester" app has been designed to enable users to test the functionality of their gamepads across various devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published