add reset function

This commit is contained in:
Crispy 2023-04-24 20:22:09 +02:00
parent 38bebf8cf3
commit edca13ca09
7 changed files with 75 additions and 42 deletions

View file

@ -21,6 +21,11 @@
"requirement": "mandatory",
"type": "boolean"
},
{
"name": "/actions/main/in/reset",
"requirement": "suggested",
"type": "boolean"
},
{
"name": "/actions/main/in/distance",
"requirement": "suggested",
@ -40,7 +45,8 @@
"/actions/main/in/toggle_visibility": "Toggle visibility",
"/actions/main/in/edit_mode": "Toggle edit mode",
"/actions/main/in/grab": "grab panel",
"/actions/main/in/distance": "Move away"
"/actions/main/in/distance": "Move away",
"/actions/main/in/reset": "Reset positions"
}
]
}

View file

@ -138,7 +138,7 @@
"hidden" : true
}
},
"app_key" : "system.generated.overlay",
"app_key" : "system.generated.sinpin_vr",
"bindings" : {
"/actions/legacy" : {
"haptics" : [
@ -588,15 +588,6 @@
},
"/actions/main" : {
"sources" : [
{
"inputs" : {
"long" : {
"output" : "/actions/main/in/edit_mode"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/b"
},
{
"inputs" : {
"position" : {
@ -624,15 +615,6 @@
"mode" : "button",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"long" : {
"output" : "/actions/main/in/toggle_visibility"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/b"
},
{
"inputs" : {
"position" : {
@ -641,15 +623,42 @@
},
"mode" : "joystick",
"path" : "/user/hand/left/input/thumbstick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/main/in/toggle_visibility"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/main/in/edit_mode"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"long" : {
"output" : "/actions/main/in/reset"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/a"
}
]
}
},
"category" : "steamvr_input",
"controller_type" : "knuckles",
"description" : "Default binding values for legacy apps using the Index Controller",
"description" : "yes",
"interaction_profile" : "",
"name" : "Saved overlay configuration for Index Controller",
"name" : "Saved sinpin_vr bindings",
"options" : {
"mirror_actions" : true,
"simulated_controller_type" : "none"