mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
Fix desktop case showing Vive controls.
This commit is contained in:
parent
84209c0e53
commit
d2a1b35f96
2 changed files with 12 additions and 10 deletions
|
@ -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>
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue