Add Valve Index to calibratable devices

This commit is contained in:
Julian Groß 2020-10-13 02:50:53 +02:00
parent 89c006d190
commit 2b38c07aab

View file

@ -244,7 +244,7 @@ Item {
source: InputConfiguration.configurationLayout(box.textAt(box.currentIndex)); source: InputConfiguration.configurationLayout(box.textAt(box.currentIndex));
onLoaded: { onLoaded: {
if (loader.item.hasOwnProperty("pluginName")) { if (loader.item.hasOwnProperty("pluginName")) {
if (box.textAt(box.currentIndex) === "HTC Vive") { if (box.textAt(box.currentIndex) === "HTC Vive" || box.textAt(box.currentIndex) === "Valve Index" || box.textAt(box.currentIndex) === "Valve HMD" || box.textAt(box.currentIndex) === "Valve") {
loader.item.pluginName = "OpenVR"; loader.item.pluginName = "OpenVR";
} else { } else {
loader.item.pluginName = box.textAt(box.currentIndex); loader.item.pluginName = box.textAt(box.currentIndex);
@ -298,7 +298,7 @@ Item {
loader.source = ""; loader.source = "";
var selectedDevice = box.textAt(box.currentIndex); var selectedDevice = box.textAt(box.currentIndex);
var source = ""; var source = "";
if (selectedDevice == "HTC Vive") { if (selectedDevice == "HTC Vive" || selectedDevice == "Valve Index" || selectedDevice == "Valve HMD" || selectedDevice == "Valve") {
source = InputConfiguration.configurationLayout("OpenVR"); source = InputConfiguration.configurationLayout("OpenVR");
} else { } else {
source = InputConfiguration.configurationLayout(selectedDevice); source = InputConfiguration.configurationLayout(selectedDevice);