Implement beta IVRInput system for testing

In order to test new system:

Build and deploy application.

Copy both files from IVRInput/ dir into the bin/win64 folder.

Change const std::string m_actionManifestPath in steamivrinput.h to be
directly to your action_manifest.json file.

Run and turn on a Vive controller. Press the menu button. If logs say
"NEXT SONG SET!" it works.
This commit is contained in:
Vasily
2019-01-19 16:41:59 +01:00
parent 1ff3b6a335
commit 5accfd478a
7 changed files with 184 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"default_bindings": [
{
"controller_type": "vive_controller",
"binding_url": "legacy_actions.json"
}
],
"actions": [
{
"name": "/actions/main/in/PlayNextTrack",
"requirement": "optional",
"type": "boolean"
}
],
"action_sets": [
{
"name": "/actions/main",
"usage": "leftright"
}
],
"localization" : [
{
"language_tag": "en",
"/actions/main" : "My Game Actions",
"/actions/main/in/PlayNextTrack" : "Play Next Track"
}
]
}
+42
View File
@@ -0,0 +1,42 @@
{
"alias_info" : {},
"app_key" : "matzman666.advancedsettings",
"bindings" : {
"/actions/main" : {
"sources" : [
{
"inputs" : {
"click" : {
"output" : "/actions/main/in/playnexttrack"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/application_menu"
},
{
"inputs" : {
"click" : {
"output" : "/actions/main/in/playnexttrack"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/application_menu"
},
{
"inputs" : {
"click" : {
"output" : "/actions/main/in/playnexttrack"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/grip"
}
]
}
},
"controller_type" : "vive_controller",
"description" : "",
"name" : "My My Test configuration for Vive Controller",
"options" : {},
"simulated_actions" : []
}