YouTube Tutorial: https://youtu.be/UXTOXF8Y2Cs
An easy to build gamepad tester using the JavaScript Gamepad API. This gamepad tester displays a controller and highlights the buttons being pressed. It can even show the position of the analog sticks in real time.
https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API