mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 00:09:56 +02:00
87 lines
4.3 KiB
JSON
87 lines
4.3 KiB
JSON
{
|
|
"name": "Keyboard/Mouse to Actions",
|
|
"channels": [
|
|
|
|
{ "from": "Keyboard.A", "when": "Keyboard.Shift", "to": "Actions.LATERAL_LEFT" },
|
|
{ "from": "Keyboard.D", "when": "Keyboard.Shift", "to": "Actions.LATERAL_RIGHT" },
|
|
{ "from": "Keyboard.A", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_LEFT" },
|
|
{ "from": "Keyboard.D", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_RIGHT" },
|
|
{ "from": "Keyboard.E", "when": "Keyboard.Shift", "to": "Actions.BOOM_IN", "filters": [ { "type": "scale", "scale": 0.05 } ] },
|
|
{ "from": "Keyboard.C", "when": "Keyboard.Shift", "to": "Actions.BOOM_OUT", "filters": [ { "type": "scale", "scale": 0.05 } ] },
|
|
{ "from": "Keyboard.S", "when": "Keyboard.Shift", "to": "Actions.PITCH_DOWN" },
|
|
{ "from": "Keyboard.W", "when": "Keyboard.Shift", "to": "Actions.PITCH_UP" },
|
|
|
|
|
|
{ "from": { "makeAxis" : ["Keyboard.MouseMoveLeft", "Keyboard.MouseMoveRight"] },
|
|
"when": [ "Application.InHMD", "Application.ComfortMode", "Keyboard.RightMouseButton" ],
|
|
"to": "Actions.StepYaw",
|
|
"filters":
|
|
[
|
|
"constrainToInteger",
|
|
{ "type": "pulse", "interval": 0.5 },
|
|
{ "type": "scale", "scale": 15 }
|
|
]
|
|
},
|
|
|
|
{ "from": { "makeAxis" : [
|
|
["Keyboard.A", "Keyboard.Left", "Keyboard.TouchpadLeft"],
|
|
["Keyboard.D", "Keyboard.Right", "Keyboard.TouchpadRight"]
|
|
]
|
|
},
|
|
"when": [ "Application.InHMD", "Application.ComfortMode" ],
|
|
"to": "Actions.StepYaw",
|
|
"filters":
|
|
[
|
|
{ "type": "pulse", "interval": 0.5 },
|
|
{ "type": "scale", "scale": 15 }
|
|
]
|
|
},
|
|
|
|
{ "from": { "makeAxis" : [
|
|
["Keyboard.A", "Keyboard.Left", "Keyboard.TouchpadLeft"],
|
|
["Keyboard.D", "Keyboard.Right", "Keyboard.TouchpadRight"]
|
|
]
|
|
},
|
|
"to": "Actions.Yaw"
|
|
},
|
|
|
|
{ "from": { "makeAxis" : ["Keyboard.MouseMoveLeft", "Keyboard.MouseMoveRight"] },
|
|
"when": "Keyboard.RightMouseButton",
|
|
"to": "Actions.Yaw"
|
|
},
|
|
|
|
{ "from": "Keyboard.W", "to": "Actions.LONGITUDINAL_FORWARD" },
|
|
{ "from": "Keyboard.S", "to": "Actions.LONGITUDINAL_BACKWARD" },
|
|
{ "from": "Keyboard.C", "to": "Actions.VERTICAL_DOWN" },
|
|
{ "from": "Keyboard.E", "to": "Actions.VERTICAL_UP" },
|
|
|
|
{ "from": "Keyboard.Left", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_LEFT" },
|
|
{ "from": "Keyboard.Right", "when": "Keyboard.RightMouseButton", "to": "Actions.LATERAL_RIGHT" },
|
|
{ "from": "Keyboard.Left", "when": "Keyboard.Shift", "to": "Actions.LATERAL_LEFT" },
|
|
{ "from": "Keyboard.Right", "when": "Keyboard.Shift", "to": "Actions.LATERAL_RIGHT" },
|
|
{ "from": "Keyboard.Down", "when": "Keyboard.Shift", "to": "Actions.PITCH_DOWN" },
|
|
{ "from": "Keyboard.Up", "when": "Keyboard.Shift", "to": "Actions.PITCH_UP" },
|
|
|
|
{ "from": "Keyboard.Up", "to": "Actions.LONGITUDINAL_FORWARD" },
|
|
{ "from": "Keyboard.Down", "to": "Actions.LONGITUDINAL_BACKWARD" },
|
|
|
|
{ "from": "Keyboard.PgDown", "to": "Actions.VERTICAL_DOWN" },
|
|
{ "from": "Keyboard.PgUp", "to": "Actions.VERTICAL_UP" },
|
|
|
|
{ "from": "Keyboard.MouseMoveUp", "when": "Keyboard.RightMouseButton", "to": "Actions.PITCH_UP" },
|
|
{ "from": "Keyboard.MouseMoveDown", "when": "Keyboard.RightMouseButton", "to": "Actions.PITCH_DOWN" },
|
|
|
|
{ "from": "Keyboard.TouchpadDown", "to": "Actions.PITCH_DOWN" },
|
|
{ "from": "Keyboard.TouchpadUp", "to": "Actions.PITCH_UP" },
|
|
|
|
{ "from": "Keyboard.MouseWheelUp", "to": "Actions.LATERAL_RIGHT" },
|
|
{ "from": "Keyboard.MouseWheelDown", "to": "Actions.LATERAL_LEFT" },
|
|
{ "from": "Keyboard.MouseWheelLeft", "to": "Actions.BOOM_OUT", "filters": [ { "type": "scale", "scale": 0.02 } ]},
|
|
{ "from": "Keyboard.MouseWheelRight", "to": "Actions.BOOM_IN", "filters": [ { "type": "scale", "scale": 0.02 } ]},
|
|
|
|
{ "from": "Keyboard.Space", "to": "Actions.SHIFT" },
|
|
{ "from": "Keyboard.R", "to": "Actions.ACTION1" },
|
|
{ "from": "Keyboard.T", "to": "Actions.ACTION2" },
|
|
{ "from": "Keyboard.RightMouseClicked", "to": "Actions.ContextMenu" }
|
|
]
|
|
}
|