<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->
<!DOCTYPE HTML>
<html>
<head>
  <title>frame</title>
  <script type="text/javascript">
    var connectedEvents = 0;
    var buttonPresses = 0;
    window.addEventListener("gamepadconnected", function() {
      connectedEvents++;
});
    window.addEventListener("gamepadbuttondown", function() {
      buttonPresses++;
});
  </script>
</head>
<body>
</body>
</html>