mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 00:57:44 +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 controllerType = "Other";
|
||||
function registerButtonMappings() {
|
||||
var controllersDeviceNames = Controller.getDeviceNames();
|
||||
if (controllersDeviceNames.indexOf("OculusTouch") !== -1) {
|
||||
controllerType = "OculusTouch";
|
||||
} else if (controllerDeviceNames.indexOf("Vive") !== -1) {
|
||||
var VRDevices = Controller.getDeviceNames().toString();
|
||||
if (VRDevices.includes("Vive")) {
|
||||
controllerType = "Vive";
|
||||
} else if (VRDevices.includes("OculusTouch")) {
|
||||
controllerType = "OculusTouch";
|
||||
}
|
||||
|
||||
controllerMappingName = 'Hifi-SpectatorCamera-Mapping-' + Math.random();
|
||||
|
|
Loading…
Reference in a new issue