mirror of
https://github.com/lubosz/overte.git
synced 2025-04-17 12:36:24 +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();
|
||||
basicMapping = Controller.newMapping(mappingName);
|
||||
basicMapping.from(Controller.Standard.LY).to(function(value) {
|
||||
return;
|
||||
if (isDisabled) {
|
||||
return;
|
||||
}
|
||||
var stick = Controller.getValue(Controller.Standard.LS);
|
||||
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
||||
rotate180();
|
||||
|
@ -72,7 +74,9 @@ function registerBasicMapping() {
|
|||
});
|
||||
basicMapping.from(Controller.Standard.LX).to(Controller.Standard.RX);
|
||||
basicMapping.from(Controller.Standard.RY).to(function(value) {
|
||||
return;
|
||||
if (isDisabled) {
|
||||
return;
|
||||
}
|
||||
var stick = Controller.getValue(Controller.Standard.RS);
|
||||
if (value === 1 && Controller.Hardware.OculusTouch !== undefined) {
|
||||
rotate180();
|
||||
|
|
Loading…
Reference in a new issue