mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #1127 from Armored-Dragon/fix/SelfieMovement
Fix selfie mode movement
This commit is contained in:
commit
f664d44dd8
1 changed files with 14 additions and 3 deletions
|
@ -1,8 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "Keyboard/Mouse to Actions",
|
"name": "Keyboard/Mouse to Actions",
|
||||||
"channels": [
|
"channels": [
|
||||||
{ "from": "Keyboard.A", "when": ["Keyboard.RightMouseButton", "!Keyboard.Control"], "to": "Actions.LATERAL_LEFT" },
|
{ "from": "Keyboard.A", "when": ["Keyboard.RightMouseButton", "Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.StrafeRight" },
|
||||||
{ "from": "Keyboard.D", "when": ["Keyboard.RightMouseButton", "!Keyboard.Control"], "to": "Actions.LATERAL_RIGHT" },
|
{ "from": "Keyboard.A", "when": ["Keyboard.RightMouseButton", "!Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.StrafeLeft" },
|
||||||
|
{ "from": "Keyboard.D", "when": ["Keyboard.RightMouseButton", "!Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.StrafeRight" },
|
||||||
|
{ "from": "Keyboard.D", "when": ["Keyboard.RightMouseButton", "Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.StrafeLeft" },
|
||||||
{ "from": "Keyboard.Q", "when": ["!Application.CameraSelfie", "!Keyboard.Control", "!Application.CaptureMouse"], "to": "Actions.LATERAL_LEFT" },
|
{ "from": "Keyboard.Q", "when": ["!Application.CameraSelfie", "!Keyboard.Control", "!Application.CaptureMouse"], "to": "Actions.LATERAL_LEFT" },
|
||||||
{ "from": "Keyboard.Q", "when": ["Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.LATERAL_RIGHT" },
|
{ "from": "Keyboard.Q", "when": ["Application.CameraSelfie", "!Keyboard.Control"], "to": "Actions.LATERAL_RIGHT" },
|
||||||
{ "from": "Keyboard.E", "when": ["!Application.CameraSelfie", "!Keyboard.Control", "!Application.CaptureMouse"], "to": "Actions.LATERAL_RIGHT" },
|
{ "from": "Keyboard.E", "when": ["!Application.CameraSelfie", "!Keyboard.Control", "!Application.CaptureMouse"], "to": "Actions.LATERAL_RIGHT" },
|
||||||
|
@ -145,13 +147,22 @@
|
||||||
|
|
||||||
{ "from": { "makeAxis" : ["Keyboard.MouseMoveUp", "Keyboard.MouseMoveDown"] },
|
{ "from": { "makeAxis" : ["Keyboard.MouseMoveUp", "Keyboard.MouseMoveDown"] },
|
||||||
"to": "Actions.DeltaPitch",
|
"to": "Actions.DeltaPitch",
|
||||||
"when": "Application.CaptureMouse",
|
"when": ["Application.CaptureMouse", "!Application.CameraSelfie"],
|
||||||
"filters":
|
"filters":
|
||||||
[
|
[
|
||||||
{ "type": "scale", "scale": 0.2 }
|
{ "type": "scale", "scale": 0.2 }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ "from": { "makeAxis" : ["Keyboard.MouseMoveUp", "Keyboard.MouseMoveDown"] },
|
||||||
|
"to": "Actions.DeltaPitch",
|
||||||
|
"when": ["Application.CaptureMouse", "Application.CameraSelfie"],
|
||||||
|
"filters":
|
||||||
|
[
|
||||||
|
{ "type": "scale", "scale": -0.2 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{ "from": { "makeAxis" : ["Keyboard.MouseMoveUp", "Keyboard.MouseMoveDown"] },
|
{ "from": { "makeAxis" : ["Keyboard.MouseMoveUp", "Keyboard.MouseMoveDown"] },
|
||||||
"when": ["Application.CameraLookAt", "Keyboard.RightMouseButton"],
|
"when": ["Application.CameraLookAt", "Keyboard.RightMouseButton"],
|
||||||
"to": "Actions.DeltaPitch",
|
"to": "Actions.DeltaPitch",
|
||||||
|
|
Loading…
Reference in a new issue