The navigator.getGamepads() API accesses and responds to signals from game controllers.
navigator.getGamepads()