summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/gamepad/gamepad_frame.html
blob: 345fec469684986ede4a588d0280ddf82d15706b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!-- 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>