Updating controls reference page
Before Width: | Height: | Size: 298 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 92 KiB |
BIN
interface/resources/html/img/tablet-help-windowsMR.jpg
Normal file
After Width: | Height: | Size: 94 KiB |
|
@ -66,12 +66,16 @@
|
|||
<script>
|
||||
var handControllerImageURL = null;
|
||||
var index = 0;
|
||||
var count = 4;
|
||||
var count = 5;
|
||||
|
||||
function showKbm() {
|
||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-keyboard.jpg");
|
||||
}
|
||||
|
||||
function showWindowsMR() {
|
||||
document.getElementById("main_image").setAttribute("src", "img/tablet-help-windowsMR.jpg");
|
||||
}
|
||||
|
||||
function showHandControllers() {
|
||||
document.getElementById("main_image").setAttribute("src", handControllerImageURL);
|
||||
}
|
||||
|
@ -105,6 +109,9 @@
|
|||
showGamepad();
|
||||
break;
|
||||
case 3:
|
||||
showWindowsMR();
|
||||
break;
|
||||
case 4:
|
||||
showKbm();
|
||||
break;
|
||||
|
||||
|
@ -161,10 +168,15 @@
|
|||
showHandControllers();
|
||||
break;
|
||||
|
||||
case "windowsMR":
|
||||
showWindowsMR();
|
||||
index = 3;
|
||||
break;
|
||||
|
||||
case "kbm":
|
||||
default:
|
||||
showKbm();
|
||||
index = 3;
|
||||
index = 4;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -3223,6 +3223,7 @@ void Application::setSettingConstrainToolbarPosition(bool setting) {
|
|||
void Application::showHelp() {
|
||||
static const QString HAND_CONTROLLER_NAME_VIVE = "vive";
|
||||
static const QString HAND_CONTROLLER_NAME_OCULUS_TOUCH = "oculus";
|
||||
static const QString HAND_CONTROLLER_NAME_WINDOWS_MR = "windowsMR";
|
||||
|
||||
static const QString TAB_KEYBOARD_MOUSE = "kbm";
|
||||
static const QString TAB_GAMEPAD = "gamepad";
|
||||
|
@ -3240,6 +3241,7 @@ void Application::showHelp() {
|
|||
} else if (PluginUtils::isXboxControllerAvailable()) {
|
||||
defaultTab = TAB_GAMEPAD;
|
||||
}
|
||||
// TODO need some way to detect windowsMR to load controls reference default tab in Help > Controls Reference menu.
|
||||
|
||||
QUrlQuery queryString;
|
||||
queryString.addQueryItem("handControllerName", handControllerName);
|
||||
|
|