mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 10:54:26 +02:00
Fix advanced movement being disabled
This commit is contained in:
parent
b839926396
commit
a5e3fa45c3
1 changed files with 6 additions and 2 deletions
|
@ -55,7 +55,9 @@ function registerBasicMapping() {
|
||||||
mappingName = 'Hifi-AdvancedMovement-Dev-' + Math.random();
|
mappingName = 'Hifi-AdvancedMovement-Dev-' + Math.random();
|
||||||
basicMapping = Controller.newMapping(mappingName);
|
basicMapping = Controller.newMapping(mappingName);
|
||||||
basicMapping.from(Controller.Standard.LY).to(function(value) {
|
basicMapping.from(Controller.Standard.LY).to(function(value) {
|
||||||
return;
|
if (isDisabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var stick = Controller.getValue(Controller.Standard.LS);
|
var stick = Controller.getValue(Controller.Standard.LS);
|
||||||
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
||||||
rotate180();
|
rotate180();
|
||||||
|
@ -72,7 +74,9 @@ function registerBasicMapping() {
|
||||||
});
|
});
|
||||||
basicMapping.from(Controller.Standard.LX).to(Controller.Standard.RX);
|
basicMapping.from(Controller.Standard.LX).to(Controller.Standard.RX);
|
||||||
basicMapping.from(Controller.Standard.RY).to(function(value) {
|
basicMapping.from(Controller.Standard.RY).to(function(value) {
|
||||||
return;
|
if (isDisabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var stick = Controller.getValue(Controller.Standard.RS);
|
var stick = Controller.getValue(Controller.Standard.RS);
|
||||||
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
||||||
rotate180();
|
rotate180();
|
||||||
|
|
Loading…
Reference in a new issue