-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgamepad.html
86 lines (62 loc) · 2.03 KB
/
gamepad.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE HTML>
<!--
this file is from https://github.com/nickshin/CheatSheets/
this file contains some HTML5 snippets on:
- gamepad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
reference sources:
+ https://wiki.mozilla.org/GamepadAPI
o https://wiki.mozilla.org/GamepadAPI#Complete_Example:_Displaying_Gamepad_State
+ http://hacks.mozilla.org/2011/12/paving-the-way-for-open-games-on-the-web-with-the-gamepad-and-mouse-lock-apis/
o https://bug604039.bugzilla.mozilla.org/attachment.cgi?id=565617
+ http://www.html5rocks.com/en/tutorials/doodles/gamepad/
+ http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html
+
DEMO!!!
+
notes:
- this is still TBD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
best viewed in editor with tab stops set to 4
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
-->
<!-- ================================================== -->
<!-- START OF HTML -->
<html>
<head>
<title>Game Pad : HTML5 test code</title>
<!-- ================================================== -->
<!-- Javascript {{{ -->
<!-- ================================================== -->
<!-- .................................................. -->
<!-- gamepad {{{2 -->
<!-- .................................................. -->
<script>
function gamepad_onload() {
}
</script>
<!-- .................................................. -->
<!-- gamepad }}}2 -->
<!-- this document {{{2 -->
<!-- .................................................. -->
<script>
onload = onload_handler;
function onload_handler() {
gamepad_onload();
}
</script>
<!-- .................................................. -->
<!-- this document }}}2 -->
<!-- Javascript }}} -->
<!-- ================================================== -->
</head>
<!-- ================================================== -->
<!-- START OF BODY -->
<body>
Coming soon!
<p>
This is still a moving target.<br>
Please view source for notes.
<!-- ================================================== -->
</body>
</html>