mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Remove random component of button mapping name
This commit is contained in:
parent
e2c6993ae9
commit
378d8e80cf
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@
|
|||
const SWITCH_VIEW_FROM_CONTROLLER_DEFAULT = false;
|
||||
var switchViewFromController = !!Settings.getValue('spectatorCamera/switchViewFromController', SWITCH_VIEW_FROM_CONTROLLER_DEFAULT);
|
||||
function setControllerMappingStatus(status) {
|
||||
if (status === true) {
|
||||
if (status) {
|
||||
controllerMapping.enable();
|
||||
} else {
|
||||
controllerMapping.disable();
|
||||
|
@ -343,7 +343,7 @@
|
|||
controllerType = "OculusTouch";
|
||||
}
|
||||
|
||||
controllerMappingName = 'Hifi-SpectatorCamera-Mapping-' + Math.random();
|
||||
controllerMappingName = 'Hifi-SpectatorCamera-Mapping';
|
||||
controllerMapping = Controller.newMapping(controllerMappingName);
|
||||
if (controllerType === "OculusTouch") {
|
||||
controllerMapping.from(Controller.Standard.LS).to(function (value) {
|
||||
|
|
Loading…
Reference in a new issue