mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
Add Valve Index to calibratable devices
This commit is contained in:
parent
89c006d190
commit
2b38c07aab
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue