-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
198 lines (186 loc) · 7.6 KB
/
index.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!-- This file is a copy of tester/index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no"
/>
<title>buzz-controller.js</title>
<meta
name="description"
content="A modified library designed to make the Gamepad API easier to use for non-gaming applications - with support for controlling Buzz lights."
/>
<!-- Open Graph -->
<meta
property="og:url"
content="http://jackcarey.github.io/buzz-controller.js"
/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="buzz-controller.js" />
<meta property="og:title" content="buzz-controller.js" />
<meta
property="og:description"
content="A modified library designed to make the Gamepad API easier to use for non-gaming applications - with support for controlling Buzz lights."
/>
<meta
property="og:image"
content="http://jackcarey.github.io/buzz-controller.js/assets/images/facebook.png"
/>
<meta property="og:locale" content="en_US" />
<meta property="fb:admins" content="45503650" />
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="jackcarey.co.uk" />
<meta name="twitter:creator" content="jackcarey.co.uk" />
<meta name="twitter:title" content="buzz-controller.js" />
<meta
name="twitter:description"
content="A modified library designed to make the Gamepad API easier to use for non-gaming applications - with support for controlling Buzz lights."
/>
<meta
name="twitter:image"
content="http://jackcarey.github.io/buzz-controller.js/assets/images/twitter.png"
/>
<!--[if IE]><link rel="shortcut icon" href="favicon.ico" /><![endif]-->
<link rel="icon" href="./assets/favicon.ico" />
<link rel="mask-icon" href="./assets/safari-pinned-icon.svg" color="#8cffd8" />
<link
href="https://fonts.googleapis.com/css?family=Roboto+Mono:100,300,400,700"
rel="stylesheet"
/>
<link rel="stylesheet" href="assets/styles/style.css" />
</head>
<body>
<header>
<h1 class="padded">buzz-controller.js</h1>
<h2>
A modified library designed to make the Gamepad API easier to
use for non-gaming applications - with support for controlling
Buzz lights.
</h2>
<ol id="instructions">
<b>instructions</b>
<li>Connect your gamepad</li>
<li>
Some browsers require you to press a controller button to wake the
gamepad
</li>
<li>If your gamepad is supported, it will show up below</li>
</ol>
<table id="light-controls">
<thead>
<tr>
<th><b>Lights</b></th>
</tr>
<tr>
<th colspan="2"><i style="font-weight:normal;">Press a controller button to update the state</i></th>
</tr>
</thead>
<tbody>
<tr>
<td><label for="light-presets">Presets</label><input type="number" name="presetMs" id="presetMs" value="300" max="10000" min="10"></td>
<td>
<select name="light-presets" id="light-presets"></select>
</td>
</tr>
<tr>
<td>
<label for="light-press">Light with player</label>
</td>
<td>
<input
type="checkbox"
name="light-press"
id="light-press"
class="light-indiv-control"
checked="checked"
/>
</td>
</tr>
<tr>
<td><label for="p1-on">P1 on</label></td>
<td>
<input type="checkbox" name="p1-on" id="p1-on" class="light-indiv-control"/>
</td>
</tr>
<tr>
<td><label for="p2-on">P2 on </label></td>
<td>
<input type="checkbox" name="p2-on" id="p2-on" class="light-indiv-control"/>
</td>
</tr>
<tr>
<td><label for="p3-on">P3 on</label></td>
<td>
<input type="checkbox" name="p3-on" id="p3-on" class="light-indiv-control"/>
</td>
</tr>
<tr>
<td><label for="p4-on">P4 on</label></td>
<td>
<input type="checkbox" name="p4-on" id="p4-on" class="light-indiv-control"/>
</td>
</tr>
</tbody>
</table>
<div id="lights-unsupported">
<b>Lights</b>
<p><span class="red">! ! !</span> Not supported</p>
</div>
<div id="unsupported">
<p class="red">! ! !</p>
<b>Unsupported</b>
<p>Your browser does not support Controller.js.</p>
<p>
Check the
<a
href="https://github.com/jackcarey/buzz-controller.js#compatibility"
target="_blank"
rel="noopener noreferrer"
>compatibility list</a
>
and read more about
<a
href="http://caniuse.com/#feat=gamepad"
target="_blank"
rel="noopener noreferrer"
>Gamepad API support</a
>.
</p>
</div>
</header>
<main></main>
<footer class="hidden-footer">
<p>
Read the
<a
href="http://github.com/jackcarey/buzz-controller.js/wiki"
target="_blank"
rel="noopener noreferrer"
>documentation</a
>.
</p>
<p>
Check out the source on
<a
href="http://github.com/jackcarey/buzz-controller.js"
target="_blank"
rel="noopener noreferrer"
>GitHub</a
>.
</p>
<p>
<strong>buzz-controller.js</strong> was made by
<a href="http://jackcarey.co.uk/" target="_blank">Jack Carey</a
>.
</p>
</footer>
<script src="assets/js/dat.gui.min.js"></script>
<script src="Controller.js"></script>
<script src="BuzzController.js"></script>
<script src="Controller.layouts.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>