mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:33:27 +02:00
Add hand dominance state awareness to bindings, add bindings for both cases.
This commit is contained in:
parent
ea025a6878
commit
9586f88ebc
1 changed files with 72 additions and 8 deletions
|
@ -1,11 +1,14 @@
|
||||||
{
|
{
|
||||||
"name": "Standard to Action",
|
"name": "Standard to Action",
|
||||||
"channels": [
|
"channels": [
|
||||||
{ "from": "Standard.LY", "to": "Actions.TranslateZ" },
|
{ "from": "Standard.LY",
|
||||||
|
"when": "Application.LeftHandDominant",
|
||||||
|
"to": "Actions.TranslateZ"
|
||||||
|
},
|
||||||
|
|
||||||
{ "from": "Standard.LX",
|
{ "from": "Standard.LX",
|
||||||
"when": [
|
"when": [
|
||||||
"Application.InHMD", "!Application.AdvancedMovement",
|
"Application.InHMD", "!Application.AdvancedMovement", "Application.LeftHandDominant",
|
||||||
"Application.SnapTurn", "!Standard.RX"
|
"Application.SnapTurn", "!Standard.RX"
|
||||||
],
|
],
|
||||||
"to": "Actions.StepYaw",
|
"to": "Actions.StepYaw",
|
||||||
|
@ -18,14 +21,14 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "from": "Standard.LX", "to": "Actions.TranslateX",
|
{ "from": "Standard.LX", "to": "Actions.TranslateX",
|
||||||
"when": [ "Application.AdvancedMovement" ]
|
"when": [ "Application.AdvancedMovement", "Application.LeftHandDominant" ]
|
||||||
},
|
},
|
||||||
{ "from": "Standard.LX", "to": "Actions.Yaw",
|
{ "from": "Standard.LX", "to": "Actions.Yaw",
|
||||||
"when": [ "!Application.AdvancedMovement", "!Application.SnapTurn" ]
|
"when": [ "!Application.AdvancedMovement", "!Application.SnapTurn", "Application.LeftHandDominant" ]
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.RX",
|
{ "from": "Standard.RX",
|
||||||
"when": [ "Application.SnapTurn" ],
|
"when": [ "Application.SnapTurn", "Application.LeftHandDominant" ],
|
||||||
"to": "Actions.StepYaw",
|
"to": "Actions.StepYaw",
|
||||||
"filters":
|
"filters":
|
||||||
[
|
[
|
||||||
|
@ -36,11 +39,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{ "from": "Standard.RX", "to": "Actions.Yaw",
|
{ "from": "Standard.RX", "to": "Actions.Yaw",
|
||||||
"when": [ "!Application.SnapTurn" ]
|
"when": [ "!Application.SnapTurn", "Application.LeftHandDominant" ]
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.RY",
|
{ "from": "Standard.RY",
|
||||||
"when": "Application.Grounded",
|
"when": [ "Application.Grounded", "Application.LeftHandDominant" ],
|
||||||
"to": "Actions.Up",
|
"to": "Actions.Up",
|
||||||
"filters":
|
"filters":
|
||||||
[
|
[
|
||||||
|
@ -49,7 +52,68 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
{ "from": "Standard.RY", "to": "Actions.Up", "filters": "invert"},
|
{ "from": "Standard.RY",
|
||||||
|
"when": "Application.LeftHandDominant",
|
||||||
|
"to": "Actions.Up",
|
||||||
|
"filters": "invert"
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "from": "Standard.RY",
|
||||||
|
"when": "Application.RightHandDominant",
|
||||||
|
"to": "Actions.TranslateZ"
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "from": "Standard.RX",
|
||||||
|
"when": [
|
||||||
|
"Application.InHMD", "!Application.AdvancedMovement", "Application.RightHandDominant",
|
||||||
|
"Application.SnapTurn", "!Standard.RX"
|
||||||
|
],
|
||||||
|
"to": "Actions.StepYaw",
|
||||||
|
"filters":
|
||||||
|
[
|
||||||
|
{ "type": "deadZone", "min": 0.15 },
|
||||||
|
"constrainToInteger",
|
||||||
|
{ "type": "pulse", "interval": 0.25 },
|
||||||
|
{ "type": "scale", "scale": 22.5 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ "from": "Standard.RX", "to": "Actions.TranslateX",
|
||||||
|
"when": [ "Application.AdvancedMovement", "Application.RightHandDominant" ]
|
||||||
|
},
|
||||||
|
{ "from": "Standard.RX", "to": "Actions.Yaw",
|
||||||
|
"when": [ "!Application.AdvancedMovement", "!Application.SnapTurn", "Application.RightHandDominant" ]
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "from": "Standard.LX",
|
||||||
|
"when": [ "Application.SnapTurn", "Application.RightHandDominant" ],
|
||||||
|
"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.Yaw",
|
||||||
|
"when": [ "!Application.SnapTurn", "Application.RightHandDominant" ]
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "from": "Standard.LY",
|
||||||
|
"when": [ "Application.Grounded", "Application.RightHandDominant" ],
|
||||||
|
"to": "Actions.Up",
|
||||||
|
"filters":
|
||||||
|
[
|
||||||
|
{ "type": "deadZone", "min": 0.6 },
|
||||||
|
"invert"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "from": "Standard.LY",
|
||||||
|
"when": "Application.RightHandDominant",
|
||||||
|
"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" },
|
||||||
|
|
Loading…
Reference in a new issue