Skip to content

Commit

Permalink
Add default reset bindings.
Browse files Browse the repository at this point in the history
Idea behind all of them is to hold the "same" button on both
controllers, then click both triggers. Whether you want reset or fast
reset is determined by which button you hold.
 - Kunckles: A for Fast, B for Full
 - Oculus Touch: A/X for Fast, B/Y for Full
 - Vive Wand: Grip for Fast, Trackpad for Full
 - Holographic (WMR): Grip for Fast, Trackpad for Full
 - HP Motion (WMR): A/X for Fast, B/Y for Full
  • Loading branch information
kitlith committed Mar 2, 2023
1 parent 93fff87 commit 7c1c55a
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 5 deletions.
77 changes: 76 additions & 1 deletion bindings/holographic_controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@
"controller_type": "holographic_controller",
"bindings": {
"/actions/main": {
"sources": [],
"sources": [
{
"path": "/user/hand/left/input/trackpad",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/trackpad",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/grip",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/grip",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"inputs": {}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"inputs": {}
}
],
"skeleton": [],
"haptics": [],
"poses": [
Expand All @@ -17,6 +48,50 @@
"path": "/user/hand/right/pose/raw",
"requirement": "optional"
}
],
"chords": [
{
"output": "/actions/main/in/fast_reset",
"inputs": [
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/grip",
"held"
],
[
"/user/hand/right/input/grip",
"held"
]
]
},
{
"output": "/actions/main/in/request_calibration",
"inputs": [
[
"/user/hand/left/input/trackpad",
"held"
],
[
"/user/hand/right/input/trackpad",
"held"
],
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/right/input/trigger",
"click"
]
]
}
]
}
}
Expand Down
77 changes: 76 additions & 1 deletion bindings/hpmotioncontroller.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@
"controller_type": "hpmotioncontroller",
"bindings": {
"/actions/main": {
"sources": [],
"sources": [
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"inputs": {}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"inputs": {}
},
{
"path": "/user/hand/left/input/x",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/a",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/y",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"inputs": {}
}
],
"skeleton": [],
"haptics": [],
"poses": [
Expand All @@ -17,6 +48,50 @@
"path": "/user/hand/right/pose/raw",
"requirement": "optional"
}
],
"chords": [
{
"output": "/actions/main/in/fast_reset",
"inputs": [
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/x",
"held"
],
[
"/user/hand/right/input/a",
"held"
]
]
},
{
"output": "/actions/main/in/request_calibration",
"inputs": [
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/y",
"held"
],
[
"/user/hand/right/input/b",
"held"
]
]
}
]
}
}
Expand Down
77 changes: 76 additions & 1 deletion bindings/knuckles.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@
"controller_type": "knuckles",
"bindings": {
"/actions/main": {
"sources": [],
"sources": [
{
"path": "/user/hand/left/input/a",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/a",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/b",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"inputs": {}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"inputs": {}
}
],
"skeleton": [],
"haptics": [],
"poses": [
Expand All @@ -17,6 +48,50 @@
"path": "/user/hand/right/pose/raw",
"requirement": "optional"
}
],
"chords": [
{
"inputs": [
[
"/user/hand/left/input/b",
"held"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/left/input/b",
"held"
]
],
"output": "/actions/main/in/request_calibration"
},
{
"inputs": [
[
"/user/hand/left/input/a",
"held"
],
[
"/user/hand/right/input/a",
"held"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/trigger",
"click"
]
],
"output": "/actions/main/in/fast_reset"
}
]
}
}
Expand Down
77 changes: 76 additions & 1 deletion bindings/oculus_touch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@
"controller_type": "oculus_touch",
"bindings": {
"/actions/main": {
"sources": [],
"sources": [
{
"path": "/user/hand/right/input/a",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/b",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/right/input/trigger",
"mode": "trigger",
"inputs": {}
},
{
"path": "/user/hand/left/input/x",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/y",
"mode": "button",
"inputs": {}
},
{
"path": "/user/hand/left/input/trigger",
"mode": "trigger",
"inputs": {}
}
],
"skeleton": [],
"haptics": [],
"poses": [
Expand All @@ -17,6 +48,50 @@
"path": "/user/hand/right/pose/raw",
"requirement": "optional"
}
],
"chords": [
{
"inputs": [
[
"/user/hand/right/input/a",
"held"
],
[
"/user/hand/left/input/trigger",
"click"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/x",
"held"
]
],
"output": "/actions/main/in/fast_reset"
},
{
"inputs": [
[
"/user/hand/left/input/y",
"held"
],
[
"/user/hand/right/input/b",
"held"
],
[
"/user/hand/right/input/trigger",
"click"
],
[
"/user/hand/left/input/trigger",
"click"
]
],
"output": "/actions/main/in/request_calibration"
}
]
}
}
Expand Down
Loading

0 comments on commit 7c1c55a

Please sign in to comment.