mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 19:24:23 +02:00
Adding example mapping files
This commit is contained in:
parent
0587c23b67
commit
c02d33c17c
2 changed files with 60 additions and 0 deletions
24
interface/resources/controllers/mapping-config.json
Normal file
24
interface/resources/controllers/mapping-config.json
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "Full Mapping config including the standard hydra and gamepad and one more thing",
|
||||
"mappings": [
|
||||
"src": "./mapping-hydra.json",
|
||||
"src": "./mapping-xbox.json",
|
||||
{
|
||||
"name": "example mapping for standard to js function",
|
||||
"channels": [ {
|
||||
"from": "Standard.B",
|
||||
"to": {
|
||||
"type":"js",
|
||||
"function": "function(value){ print("Standard.B = " + value );}"
|
||||
}
|
||||
}, {
|
||||
"from": "Standard.B",
|
||||
"to": {
|
||||
"type":"js",
|
||||
"src": "http://www.theNextBigThing.com/hifiInputSignalHandler.js"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
36
interface/resources/controllers/mapping-test0.json
Normal file
36
interface/resources/controllers/mapping-test0.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"name": "example mapping from Standard to actions",
|
||||
"channels": [ {
|
||||
"from": "Standard.LY",
|
||||
"filters": [ {
|
||||
"type": "clamp",
|
||||
"min": 0,
|
||||
"max": 1,
|
||||
}
|
||||
],
|
||||
"to": "Actions.Forward",
|
||||
}, {
|
||||
"from": "Standard.LY",
|
||||
"filters": [ {
|
||||
"type": "clamp",
|
||||
"min": -1,
|
||||
"max": 0,
|
||||
}, {
|
||||
"type": "invert"
|
||||
}
|
||||
],
|
||||
"to": "Actions.Backward",
|
||||
}, {
|
||||
"from": "Standard.LX",
|
||||
"filters": [ {
|
||||
"type": "scale",
|
||||
"scale": 2.0,
|
||||
}
|
||||
],
|
||||
"to": "Actions.Yaw",
|
||||
}, {
|
||||
"from": "Standard.A",
|
||||
"to": "Actions.Action0"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue