mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 04:08:13 +02:00
Fix bug found by Cain with his patch - thank you!
This commit is contained in:
parent
749dede8b3
commit
e2c6993ae9
1 changed files with 4 additions and 4 deletions
|
@ -336,11 +336,11 @@
|
||||||
var controllerMapping;
|
var controllerMapping;
|
||||||
var controllerType = "Other";
|
var controllerType = "Other";
|
||||||
function registerButtonMappings() {
|
function registerButtonMappings() {
|
||||||
var controllersDeviceNames = Controller.getDeviceNames();
|
var VRDevices = Controller.getDeviceNames().toString();
|
||||||
if (controllersDeviceNames.indexOf("OculusTouch") !== -1) {
|
if (VRDevices.includes("Vive")) {
|
||||||
controllerType = "OculusTouch";
|
|
||||||
} else if (controllerDeviceNames.indexOf("Vive") !== -1) {
|
|
||||||
controllerType = "Vive";
|
controllerType = "Vive";
|
||||||
|
} else if (VRDevices.includes("OculusTouch")) {
|
||||||
|
controllerType = "OculusTouch";
|
||||||
}
|
}
|
||||||
|
|
||||||
controllerMappingName = 'Hifi-SpectatorCamera-Mapping-' + Math.random();
|
controllerMappingName = 'Hifi-SpectatorCamera-Mapping-' + Math.random();
|
||||||
|
|
Loading…
Reference in a new issue