mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
8576d5670d
--HG-- rename : dom/tests/mochitest/gamepad/test_gamepad_hidden_frame.html => dom/tests/mochitest/gamepad/test_gamepad_connect_events.html
21 lines
478 B
HTML
21 lines
478 B
HTML
<!-- 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>
|