-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
82 lines (68 loc) · 2.59 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JavaScript Gamepad Demo</title>
<link rel="stylesheet" type="text/css" href="gpcon.css">
<script type="text/javascript" src="libhtml.js"></script>
<script type="text/javascript" src="libgp.js"></script>
<script type="text/javascript" src="gpcon.js"></script>
</head>
<body>
<div id="sol" class="nodisp">Gamepads don't appear to be supported
on this browser. Bummer.</div>
<div id="prompt" class="nodisp">Attach a gamepad or press a gamepad
button</div>
<div id="main" class="nodisp">
<div id="button-bar">
<span class="button-bar-title">Gamepad: </span>
<span id="button-bar-box"></span>
</div>
<div id="mode-select-box">
Mode
<select id="mode-select">
<option selected="selected" value="raw">Raw</option>
<option value="clamp">Clamped</option>
</select>
</div>
<div id="deadzone-box">
Deadzone
<input type="checkbox" id="deadzone">
</div>
<hr>
<div id="gamepad-container">
</div>
</div>
<!-- Templates are copied for use when needed -->
<div id="templates">
<input id="template-button" type="button" class="selector-button">
<div id="template-gamepad" class="gamepad nodisp">
<div class="gamepad-title"></div>
(<div class="gamepad-mapping"></div>)
<div class="gamepad-id"></div>
<div class="gamepad-controls-center">
<div class="gamepad-controls">
<div class="gamepad-buttons-box"></div>
<div class="gamepad-axes-box"></div>
</div>
</div>
</div>
<div id="template-gamepad-button-container" class="gamepad-button-container">
<div class="gamepad-button"></div>
<div class="gamepad-button-label"></div>
</div>
<div id="template-gamepad-axis-pair-container" class="gamepad-axis-pair-container">
<div class="gamepad-axis-pair">
<div class="gamepad-circle nodisp"></div>
<div class="gamepad-axis-pip"></div>
<div class="gamepad-axis-crosshair">
<div class="gamepad-axis-crosshair-v"></div>
<div class="gamepad-axis-crosshair-h"></div>
</div>
</div>
<div class="gamepad-axis-pair-label"></div>
<div class="gamepad-axis-pair-value"></div>
</div>
</div>
</body>
</html>