add LX snap turn to standard mapping

This commit is contained in:
Stephen Birarda 2017-03-13 15:14:20 -07:00
parent 546f32431d
commit 0926b2df2a
2 changed files with 21 additions and 12 deletions

View file

@ -2,6 +2,18 @@
"name": "Standard to Action",
"channels": [
{ "from": "Standard.LY", "to": "Actions.TranslateZ" },
{ "from": "Standard.LX",
"when": [ "Application.InHMD", "Application.SnapTurn" ],
"to": "Actions.StepYaw",
"filters":
[
{ "type": "deadZone", "min": 0.15 },
"constrainToInteger",
{ "type": "pulse", "interval": 0.25 },
{ "type": "scale", "scale": 22.5 }
]
},
{ "from": "Standard.LX", "to": "Actions.TranslateX" },
{ "from": "Standard.RX",
@ -15,8 +27,8 @@
{ "type": "scale", "scale": 22.5 }
]
},
{ "from": "Standard.RX", "to": "Actions.Yaw" },
{ "from": "Standard.RY",
"when": "Application.Grounded",
"to": "Actions.Up",
@ -39,5 +51,3 @@
{ "from": "Standard.RightHand", "to": "Actions.RightHand" }
]
}

View file

@ -72,7 +72,6 @@ function registerBasicMapping() {
}
return;
});
basicMapping.from(Controller.Standard.LX).to(Controller.Standard.RX);
basicMapping.from(Controller.Standard.RY).to(function(value) {
if (isDisabled) {
return;