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", "name": "Standard to Action",
"channels": [ "channels": [
{ "from": "Standard.LY", "to": "Actions.TranslateZ" }, { "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.LX", "to": "Actions.TranslateX" },
{ "from": "Standard.RX", { "from": "Standard.RX",
@ -15,29 +27,27 @@
{ "type": "scale", "scale": 22.5 } { "type": "scale", "scale": 22.5 }
] ]
}, },
{ "from": "Standard.RX", "to": "Actions.Yaw" }, { "from": "Standard.RX", "to": "Actions.Yaw" },
{ "from": "Standard.RY",
"when": "Application.Grounded", { "from": "Standard.RY",
"to": "Actions.Up", "when": "Application.Grounded",
"filters": "to": "Actions.Up",
"filters":
[ [
{ "type": "deadZone", "min": 0.6 }, { "type": "deadZone", "min": 0.6 },
"invert" "invert"
] ]
}, },
{ "from": "Standard.RY", "to": "Actions.Up", "filters": "invert"}, { "from": "Standard.RY", "to": "Actions.Up", "filters": "invert"},
{ "from": "Standard.Back", "to": "Actions.CycleCamera" }, { "from": "Standard.Back", "to": "Actions.CycleCamera" },
{ "from": "Standard.Start", "to": "Actions.ContextMenu" }, { "from": "Standard.Start", "to": "Actions.ContextMenu" },
{ "from": "Standard.LT", "to": "Actions.LeftHandClick" }, { "from": "Standard.LT", "to": "Actions.LeftHandClick" },
{ "from": "Standard.RT", "to": "Actions.RightHandClick" }, { "from": "Standard.RT", "to": "Actions.RightHandClick" },
{ "from": "Standard.LeftHand", "to": "Actions.LeftHand" }, { "from": "Standard.LeftHand", "to": "Actions.LeftHand" },
{ "from": "Standard.RightHand", "to": "Actions.RightHand" } { "from": "Standard.RightHand", "to": "Actions.RightHand" }
] ]
} }

View file

@ -72,7 +72,6 @@ function registerBasicMapping() {
} }
return; return;
}); });
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) {
if (isDisabled) { if (isDisabled) {
return; return;