mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 11:04:02 +02:00
Adding a new mapping
This commit is contained in:
parent
0fc04ab297
commit
6d3d29b6b7
1 changed files with 17 additions and 0 deletions
|
@ -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');
|
//Script.include('mapping-test0.json');
|
||||||
var myFirstMappingJSON = myFirstMapping();
|
var myFirstMappingJSON = myFirstMapping();
|
||||||
|
@ -51,6 +60,14 @@ print('myFirstMappingJSON' + JSON.stringify(myFirstMappingJSON));
|
||||||
var mapping = Controller.parseMapping(JSON.stringify(myFirstMappingJSON));
|
var mapping = Controller.parseMapping(JSON.stringify(myFirstMappingJSON));
|
||||||
|
|
||||||
Controller.enableMapping("example");
|
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) {
|
Object.keys(Controller.Standard).forEach(function (input) {
|
||||||
print("Controller.Standard." + input + ":" + Controller.Standard[input]);
|
print("Controller.Standard." + input + ":" + Controller.Standard[input]);
|
||||||
|
|
Loading…
Reference in a new issue