forked from darthcloud/BlueRetroWebCfg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueretro.html
44 lines (38 loc) · 1.62 KB
/
blueretro.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
---
feature_name: BlueRetro Advance config
icon_url: icon.png
index: index.html
---
{% include_relative _includes/intro.html %}
<div id="divBtConn">
<button id="btConn">Connect BlueRetro</button><br>
<small><i>Disconnect all controllers from BlueRetro before connecting for configuration.</i></small>
</div>
<div id="divInfo" style="display:none;margin-bottom:1em;"></div>
<div id="divBtDisconn" style="display:none;margin-bottom:1em;">
<button id="btDisconn">Disconnect BlueRetro</button>
</div>
<div id="divGlobalCfg" style="display:none;margin-bottom:1em;">
<h2 style="margin:0;">Global Config</h2>
</div>
<div id="divOutputCfg" style="display:none;margin-bottom:1em;">
<h2 style="margin:0;">Output Config</h2>
</div>
<div id="divInputCfg" style="display:none;margin-bottom:1em;">
<h2 style="margin:0;">Mapping Config</h2>
<a href="https://docs.google.com/spreadsheets/d/e/2PACX-1vT9rPK2__komCjELFpf0UYz0cMWwvhAXgAU7C9nnwtgEaivjsh0q0xeCEiZAMA-paMrneePV7IqdX48/pubhtml">BlueRetro v1.4+ mapping reference</a> (legacy ≤ <a href="https://docs.google.com/spreadsheets/d/e/2PACX-1vRln_dhkahEIhq4FQY_p461r5qvLn-Hkl89ZtfyIOGAqdnPtQZ5Ihfsjvd94fRbaHX8wU3F-r2ODYbM/pubhtml">v1.3 map here</a>)
</div>
{% include output_helper.html %}
<script src="blueretro.js" type="text/javascript"></script>
<script>
document.getElementById("btConn").addEventListener('click', function() {
if (isWebBluetoothEnabled()) {
ChromeSamples.clearLog();
btConn();
}
});
document.getElementById("btDisconn").addEventListener('click', function() {
btDisconn();
});
</script>
{% include_relative _includes/utils.html %}