Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
gamepad directive controls whether the current document is allowed to use the Gamepad API. When this policy is disabled, calls to
Navigator.getGamepads() will throw a
DOMException. In addition, the
gamepaddisconnected events will not fire.