mirror of
https://github.com/overte-org/overte.git
synced 2025-06-04 23:01:01 +02:00
!= to !==
This commit is contained in:
parent
e6f7457d0c
commit
8294df8b76
1 changed files with 2 additions and 2 deletions
|
@ -344,9 +344,9 @@
|
||||||
function registerButtonMappings() {
|
function registerButtonMappings() {
|
||||||
var VRDevices = Controller.getDeviceNames().toString();
|
var VRDevices = Controller.getDeviceNames().toString();
|
||||||
if (VRDevices) {
|
if (VRDevices) {
|
||||||
if (VRDevices.indexOf("Vive") != -1) {
|
if (VRDevices.indexOf("Vive") !== -1) {
|
||||||
controllerType = "Vive";
|
controllerType = "Vive";
|
||||||
} else if (VRDevices.indexOf("OculusTouch") != -1) {
|
} else if (VRDevices.indexOf("OculusTouch") !== -1) {
|
||||||
controllerType = "OculusTouch";
|
controllerType = "OculusTouch";
|
||||||
} else {
|
} else {
|
||||||
sendToQml({ method: 'updateControllerMappingCheckbox', setting: switchViewFromController, controller: controllerType });
|
sendToQml({ method: 'updateControllerMappingCheckbox', setting: switchViewFromController, controller: controllerType });
|
||||||
|
|
Loading…
Reference in a new issue