-
Notifications
You must be signed in to change notification settings - Fork 3
/
ctrl.html
17 lines (16 loc) · 1.07 KB
/
ctrl.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html style="overflow: hidden; margin:0px;">
<head>
<title>ctrl.js Controller</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta charset="UTF-8">
<script type="text/javascript" src="src/peerjs.min.js"></script>
<script type="text/javascript" src="src/controller/three.min.js"></script>
<script type="text/javascript" src="src/controller/controllerConnection.js"></script>
</head>
<body style="overflow: hidden; margin:0px;">
<input id="PlayerName" type="text" placeholder="Player Name" onchange="controller.ctrljs.setPlayerName();" oninput="this.onchange();" style="z-index: 4; position: absolute;"></input>
<div id="Status" style="color:white; z-index: 3; position: absolute; top:2em;">Connecting...</div>
<button id="ToggleDPad" style="z-index: 2; position: absolute; left:14em;" onclick="controller.toggleDPad();">Toggle Directional Pad</button>
<script type="text/javascript" src="src/controller/controller.js"></script>
</body>
</html>