Adding a new mapping

This commit is contained in:
samcake 2015-10-16 15:24:44 -07:00
parent 0fc04ab297
commit 6d3d29b6b7

View file

@ -43,6 +43,15 @@ return {
}
}
mySecondMapping = function() {
return {
"name": "example2",
"channels": [
{ "from": "Standard.LY", "to": "Actions.TRANSLATE_Z" },
{ "from": "Standard.LX", "to": "Actions.YAW" },
]
}
}
//Script.include('mapping-test0.json');
var myFirstMappingJSON = myFirstMapping();
@ -51,6 +60,14 @@ print('myFirstMappingJSON' + JSON.stringify(myFirstMappingJSON));
var mapping = Controller.parseMapping(JSON.stringify(myFirstMappingJSON));
Controller.enableMapping("example");
var myFirstMappingJSON = myFirstMapping();
print('myFirstMappingJSON' + JSON.stringify(myFirstMappingJSON));
var mapping = Controller.parseMapping(JSON.stringify(myFirstMappingJSON));
Controller.enableMapping("example");
/*
Object.keys(Controller.Standard).forEach(function (input) {
print("Controller.Standard." + input + ":" + Controller.Standard[input]);