All bindings are disabled by default. This is to prevent confusing behaviour from users who do not know about the new bindings. Forcing users to manually set up their bindings will also enable them to play around with the SteamVR bindings interface, which allows for much more versatile binding options that our current offerings. All actions are curently in main action set. If the selection of bindings was greatly expanded it could be beneficial to encapsulate the options more. The current code is more intended as a proof of concept until our full binding needs have been uncovered. The processInputBindings function should probably also be split into several functions of related bindings, as the amount of bindings grows.
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"default_bindings": [
|
|
{
|
|
"controller_type": "vive_controller",
|
|
"binding_url": "default_action_manifests/vive_defaults.json"
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"name": "/actions/main/in/NextTrack",
|
|
"requirement": "optional",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "/actions/main/in/PreviousTrack",
|
|
"requirement": "optional",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "/actions/main/in/PausePlayTrack",
|
|
"requirement": "optional",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "/actions/main/in/StopTrack",
|
|
"requirement": "optional",
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"action_sets": [
|
|
{
|
|
"name": "/actions/main",
|
|
"usage": "leftright"
|
|
}
|
|
],
|
|
"localization" : [
|
|
{
|
|
"language_tag": "en",
|
|
|
|
"/actions/main" : "Advanced Settings Actions",
|
|
|
|
"/actions/main/in/NextTrack" : "Play Next Track",
|
|
"/actions/main/in/PreviousTrack" : "Play Previous Track",
|
|
"/actions/main/in/PausePlayTrack" : "Pause/Play Track",
|
|
"/actions/main/in/StopTrack" : "Stop Track"
|
|
}
|
|
]
|
|
} |