-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
147 lines (136 loc) · 4.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
/>
<title>PPSSPP Controller</title>
<link rel="stylesheet" href="/style.css" />
<script src="/socket.io/socket.io.js"></script>
</head>
<body>
<div id="top-group">
<button
id="left-trigger"
ontouchstart="holdKey(event, 'holdLeftTrigger')"
ontouchend="releaseKey(event, 'releaseLeftTrigger')"
>
<span>L</span>
</button>
<button
id="fullscreen-toggle"
data-toggle-mode="off"
onclick="toggleFullscreen(event)"
>
Toggle Fullscreen mode
</button>
<button
id="right-trigger"
ontouchstart="holdKey(event, 'holdRightTrigger')"
ontouchend="releaseKey(event, 'releaseRightTrigger')"
>
<span>R</span>
</button>
</div>
<div id="face-buttons-container">
<!-- ---------------------- -->
<button disabled="disabled" class="hidden"></button>
<button
ontouchstart="holdKey(event, 'holdTriangle')"
ontouchend="releaseKey(event, 'releaseTriangle')"
id="triangle"
>
<span class="material-symbols-rounded"> change_history </span>
</button>
<button disabled="disabled" class="hidden"></button>
<!-- ---------------------- -->
<button
ontouchstart="holdKey(event, 'holdSquare')"
ontouchend="releaseKey(event, 'releaseSquare')"
id="square"
>
<span class="material-symbols-rounded"> check_box_outline_blank </span>
</button>
<button disabled="disabled" class="hidden"></button>
<button
ontouchstart="holdKey(event, 'holdCircle')"
ontouchend="releaseKey(event, 'releaseCircle')"
id="circle"
>
<span class="material-symbols-rounded"> radio_button_unchecked </span>
</button>
<!-- ---------------------- -->
<button disabled="disabled" class="hidden"></button>
<button
ontouchstart="holdKey(event, 'holdCross')"
ontouchend="releaseKey(event, 'releaseCross')"
id="cross"
>
<span class="material-symbols-rounded"> close </span>
</button>
<button disabled="disabled" class="hidden"></button>
</div>
<div id="analog-stick"><div id="stick"></div></div>
<div id="d-pad">
<div>
<button
class="top d-pad-btn"
ontouchstart="holdKey(event, 'holdUp')"
ontouchend="releaseKey(event, 'releaseUp')"
>
<span></span>
</button>
<button
class="bottom d-pad-btn"
ontouchstart="holdKey(event, 'holdDown')"
ontouchend="releaseKey(event, 'releaseDown')"
>
<span></span>
</button>
</div>
<div>
<button
class="top d-pad-btn"
ontouchstart="holdKey(event, 'holdLeft')"
ontouchend="releaseKey(event, 'releaseLeft')"
>
<span></span>
</button>
<button
class="bottom d-pad-btn"
ontouchstart="holdKey(event, 'holdRight')"
ontouchend="releaseKey(event, 'releaseRight')"
>
<span></span>
</button>
</div>
</div>
<div id="bottom-group">
<button
ontouchstart="holdKey(event, 'holdSelect')"
ontouchend="releaseKey(event, 'releaseSelect')"
>
SELECT</button
><button
ontouchstart="holdKey(event, 'holdStart')"
ontouchend="releaseKey(event, 'releaseStart')"
>
START
</button>
</div>
<script src="/main.js"></script>
<!-- <script src="/new.js"></script> -->
</body>
</html>
<!--
onmousedown="holdKey(event, 'holdRightTrigger')"
onmouseup="releaseKey(event, 'releaseRightTrigger')"
onclick="pressKey(event, 'pressCross')"
-->