Adding example mapping files

This commit is contained in:
samcake 2015-10-09 17:27:50 -07:00
parent 0587c23b67
commit c02d33c17c
2 changed files with 60 additions and 0 deletions

View 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"
}
}
]
}
]
}

View 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"
}
]
}