Fix desktop case showing Vive controls.

This commit is contained in:
r3tk0n 2018-11-08 16:50:11 -08:00
parent 84209c0e53
commit d2a1b35f96
2 changed files with 12 additions and 10 deletions

View file

@ -94,15 +94,14 @@
switch (index)
{
case 0:
showHandControllers();
break;
case 1:
showGamepad();
break;
case 2:
case 1:
showKbm();
break;
case 2:
showHandControllers();
break;
default:
}
}
@ -142,23 +141,26 @@
handControllerImageURL = "img/tablet-help-vive.jpg";
break;
case "oculus":
handControllerImageURL = "img/tablet-help-oculus.jpg";
break;
default:
handControllerImageURL = "img/tablet-help-oculus.jpg";
handControllerImageURL = null;
count = 2;
}
switch (params.defaultTab) {
case "handControllers":
showHandControllers();
index = 0;
index = 2;
break;
case "gamepad":
showGamepad();
index = 1;
index = 0;
break;
case "kbm":
default:
showKbm();
index = 2;
index = 1;
}
}
</script>

View file

@ -3366,7 +3366,7 @@ void Application::showHelp() {
static const QString TAB_GAMEPAD = "gamepad";
static const QString TAB_HAND_CONTROLLERS = "handControllers";
QString handControllerName = HAND_CONTROLLER_NAME_VIVE;
QString handControllerName = "";
QString defaultTab = TAB_KEYBOARD_MOUSE;
if (PluginUtils::isViveControllerAvailable()) {