From 263506174e7d8e08deec89be6fece19f8d5441c7 Mon Sep 17 00:00:00 2001 From: David Back Date: Tue, 3 Jul 2018 15:09:35 -0700 Subject: [PATCH] Ctrl rules for e,q,a,d --- .../resources/controllers/keyboardMouse.json | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/interface/resources/controllers/keyboardMouse.json b/interface/resources/controllers/keyboardMouse.json index 660bc281e3..1fff71a974 100644 --- a/interface/resources/controllers/keyboardMouse.json +++ b/interface/resources/controllers/keyboardMouse.json @@ -3,9 +3,8 @@ "channels": [ { "from": "Keyboard.A", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_LEFT" }, { "from": "Keyboard.D", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_RIGHT" }, - { "from": "Keyboard.E", "to": "Actions.LATERAL_RIGHT" }, - { "from": "Keyboard.Q", "to": "Actions.LATERAL_LEFT" }, - + { "from": "Keyboard.E", "when": "!Keyboard.Control", "to": "Actions.LATERAL_RIGHT" }, + { "from": "Keyboard.Q", "when": "!Keyboard.Control", "to": "Actions.LATERAL_LEFT" }, { "comment" : "Mouse turn need to be small continuous increments", "from": { "makeAxis" : [ @@ -87,21 +86,41 @@ }, { "from": { "makeAxis" : [ - ["Keyboard.A", "Keyboard.TouchpadLeft"], - ["Keyboard.D", "Keyboard.TouchpadRight"] + ["Keyboard.A"], + ["Keyboard.D"] + ] + }, + "when": ["Application.CameraFirstPerson", "!Keyboard.Control"], + "to": "Actions.Yaw" + }, + + { "from": { "makeAxis" : [ + ["Keyboard.A"], + ["Keyboard.D"] + ] + }, + "when": ["Application.CameraThirdPerson", "!Keyboard.Control"], + "to": "Actions.Yaw" + }, + + { "from": { "makeAxis" : [ + ["Keyboard.TouchpadLeft"], + ["Keyboard.TouchpadRight"] ] }, "when": "Application.CameraFirstPerson", "to": "Actions.Yaw" }, + { "from": { "makeAxis" : [ - ["Keyboard.A", "Keyboard.TouchpadLeft"], - ["Keyboard.D", "Keyboard.TouchpadRight"] + ["Keyboard.TouchpadLeft"], + ["Keyboard.TouchpadRight"] ] }, "when": "Application.CameraThirdPerson", "to": "Actions.Yaw" }, + { "from": { "makeAxis" : ["Keyboard.MouseMoveLeft", "Keyboard.MouseMoveRight"] }, "when": "Keyboard.RightMouseButton", "to": "Actions.Yaw",