mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +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)
|
switch (index)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
showHandControllers();
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
showGamepad();
|
showGamepad();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 1:
|
||||||
showKbm();
|
showKbm();
|
||||||
break;
|
break;
|
||||||
|
case 2:
|
||||||
|
showHandControllers();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,23 +141,26 @@
|
||||||
handControllerImageURL = "img/tablet-help-vive.jpg";
|
handControllerImageURL = "img/tablet-help-vive.jpg";
|
||||||
break;
|
break;
|
||||||
case "oculus":
|
case "oculus":
|
||||||
|
handControllerImageURL = "img/tablet-help-oculus.jpg";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
handControllerImageURL = "img/tablet-help-oculus.jpg";
|
handControllerImageURL = null;
|
||||||
|
count = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (params.defaultTab) {
|
switch (params.defaultTab) {
|
||||||
case "handControllers":
|
case "handControllers":
|
||||||
showHandControllers();
|
showHandControllers();
|
||||||
index = 0;
|
index = 2;
|
||||||
break;
|
break;
|
||||||
case "gamepad":
|
case "gamepad":
|
||||||
showGamepad();
|
showGamepad();
|
||||||
index = 1;
|
index = 0;
|
||||||
break;
|
break;
|
||||||
case "kbm":
|
case "kbm":
|
||||||
default:
|
default:
|
||||||
showKbm();
|
showKbm();
|
||||||
index = 2;
|
index = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -3366,7 +3366,7 @@ void Application::showHelp() {
|
||||||
static const QString TAB_GAMEPAD = "gamepad";
|
static const QString TAB_GAMEPAD = "gamepad";
|
||||||
static const QString TAB_HAND_CONTROLLERS = "handControllers";
|
static const QString TAB_HAND_CONTROLLERS = "handControllers";
|
||||||
|
|
||||||
QString handControllerName = HAND_CONTROLLER_NAME_VIVE;
|
QString handControllerName = "";
|
||||||
QString defaultTab = TAB_KEYBOARD_MOUSE;
|
QString defaultTab = TAB_KEYBOARD_MOUSE;
|
||||||
|
|
||||||
if (PluginUtils::isViveControllerAvailable()) {
|
if (PluginUtils::isViveControllerAvailable()) {
|
||||||
|
|
Loading…
Reference in a new issue