Clean up code in tabletHelp.html

This commit is contained in:
r3tk0n 2018-11-08 11:22:43 -08:00
parent 05939f8a7c
commit 1bd978e4c3

View file

@ -137,29 +137,24 @@
switch (params.handControllerName) { switch (params.handControllerName) {
case "oculus": case "oculus":
handControllerImageURL = "img/tablet-help-oculus.jpg"; handControllerImageURL = "img/tablet-help-oculus.jpg";
index = 0;
break; break;
case "windowsMR": case "windowsMR":
handControllerImageURL = "img/tablet-help-windowsMR.jpg"; handControllerImageURL = "img/tablet-help-windowsMR.jpg";
index = 0;
break; break;
case "vive": case "vive":
handControllerImageURL = "img/tablet-help-vive.jpg"; handControllerImageURL = "img/tablet-help-vive.jpg";
index = 0;
default: default:
} }
switch (params.defaultTab) { switch (params.defaultTab) {
case "handControllers":
showHandControllers();
index = 0;
break;
case "gamepad": case "gamepad":
showGamepad(); showGamepad();
index = 1; index = 1;
break; break;
case "handControllers":
showHandControllers();
break;
case "kbm": case "kbm":
default: default:
showKbm(); showKbm();