Source code
Revision control
Copy as Markdown
Other Tools
<!-- Any copyright is dedicated to the Public Domain.
<!DOCTYPE HTML>
<html>
<head>
<title>frame</title>
<script type="text/javascript">
var connectedEvents = 0;
var buttonPresses = 0;
var idlConnected = 0;
window.addEventListener("gamepadconnected", function() {
connectedEvents++;
});
window.addEventListener("gamepadbuttondown", function() {
buttonPresses++;
});
window.ongamepadconnected = () => ++idlConnected;
</script>
</head>
<body>
</body>
</html>