34 lines
1019 B
HTML
34 lines
1019 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<!--
|
|
Gamepad API Test
|
|
Written in 2013 by Ted Mielczarek <ted@mielczarek.org>
|
|
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
|
|
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
-->
|
|
<script type="text/javascript" src="./gamepad.js"></script>
|
|
<style>
|
|
.buttons, .axes {
|
|
padding: 1em;
|
|
}
|
|
.button {
|
|
padding: 1em;
|
|
border-radius: 20px;
|
|
border: 1px solid black;
|
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdjYPjPAAACAgEAqiqeJwAAAABJRU5ErkJggg==);
|
|
background-size: 0% 0%;
|
|
background-position: 50% 50%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.pressed {
|
|
border: 1px solid red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
</body>
|
|
</html>
|