mirror of
https://github.com/CrispyPin/sinpin-vr.git
synced 2025-05-06 16:25:31 +02:00
convert to steamvr input system & add binding to toggle all overlays
This commit is contained in:
parent
4bc69f2e53
commit
41f01e29a6
7 changed files with 186 additions and 42 deletions
40
bindings/action_manifest.json
Normal file
40
bindings/action_manifest.json
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"default_bindings": [
|
||||
{
|
||||
"controller_type": "knuckles",
|
||||
"binding_url": "index_controller.json"
|
||||
}
|
||||
],
|
||||
"actions": [
|
||||
{
|
||||
"name": "/actions/main/in/ToggleAll",
|
||||
"requirement": "mandatory",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "/actions/main/in/Grab",
|
||||
"requirement": "mandatory",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "/actions/main/in/Distance",
|
||||
"requirement": "suggested",
|
||||
"type": "vector2"
|
||||
}
|
||||
],
|
||||
"action_sets": [
|
||||
{
|
||||
"name": "/actions/main",
|
||||
"usage": "leftright"
|
||||
}
|
||||
],
|
||||
"localization": [
|
||||
{
|
||||
"language_tag": "en_us",
|
||||
"/actions/main": "Overlay actions",
|
||||
"/actions/main/in/ToggleAll": "Toggle all",
|
||||
"/actions/main/in/Grab": "Grab panel",
|
||||
"/actions/main/in/Distance": "Move away"
|
||||
}
|
||||
]
|
||||
}
|
33
bindings/index_controller.json
Normal file
33
bindings/index_controller.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"/actions/main": {
|
||||
"sources": [
|
||||
{
|
||||
"path": "/user/hand/right/input/b",
|
||||
"mode": "button",
|
||||
"inputs": {
|
||||
"long": {
|
||||
"output": "/actions/main/in/toggleall"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/user/hand/right/input/thumbstick",
|
||||
"mode": "joystick",
|
||||
"inputs": {
|
||||
"position": {
|
||||
"output": "/actions/main/in/distance"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "/user/hand/right/input/trigger",
|
||||
"mode": "button",
|
||||
"inputs": {
|
||||
"click": {
|
||||
"output": "/actions/main/in/grab"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue