Fix settings to only show relevant HMD controls.

This commit is contained in:
r3tk0n 2018-11-08 11:09:19 -08:00
parent d0181283dd
commit 05939f8a7c

View file

@ -66,7 +66,7 @@
<script>
var handControllerImageURL = null;
var index = 0;
var count = 5;
var count = 3;
function showKbm() {
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
@ -94,21 +94,12 @@
switch (index)
{
case 0:
handControllerImageURL = "img/tablet-help-oculus.jpg";
showHandControllers();
break;
case 1:
handControllerImageURL = "img/tablet-help-vive.jpg";
showHandControllers();
break;
case 2:
handControllerImageURL = "img/tablet-help-windowsMR.jpg";
showHandControllers();
break;
case 3:
showGamepad();
break;
case 4:
case 2:
showKbm();
break;
@ -150,18 +141,19 @@
break;
case "windowsMR":
handControllerImageURL = "img/tablet-help-windowsMR.jpg";
index = 2;
index = 0;
break;
case "vive":
handControllerImageURL = "img/tablet-help-vive.jpg";
index = 0;
default:
handControllerImageURL = "img/tablet-help-vive.jpg";
index = 1;
}
switch (params.defaultTab) {
case "gamepad":
showGamepad();
index = 3;
index = 1;
break;
case "handControllers":
@ -171,7 +163,7 @@
case "kbm":
default:
showKbm();
index = 4;
index = 2;
}
}
</script>