Using the Gamepad API - Web API | MDN
HTML5 introduced many of the necessary components for rich, interactive game development. Technologies like , WebGL, , and , along with JavaScript implementations, have matured to the point where they can now support many tasks previously requiring native code. The Gamepad API is a way for developers and designers to access and use gamepads and other game controllers.
https://developer.mozilla.org/ko/docs/Web/API/Gamepad_API/Using_the_Gamepad_API