Updating controls reference page

This commit is contained in:
Wayne Chen 2018-07-10 17:34:03 -07:00
parent 5cf6cc0270
commit 81aac274ed
7 changed files with 16 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -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>

View file

@ -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);