Skip to content

Commit

Permalink
feat(input): improved oculus bindings (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Dec 21, 2023
1 parent 122b8b3 commit 29579d0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
Expand Down Expand Up @@ -119,24 +118,3 @@ body:
- Attach any screenshots or videos that may help explain your problem.
- Please attach the BepInEx log file (Techtonica/BepInEx/LogOutput.log)
---

**Describe the bug**
{bug-description}

**To Reproduce**
Steps to reproduce the behavior:
{bug-reproduction}

**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->

**Desktop (please complete the following information):**
- OS: {bug-os}
- Headset: {bug-headset}
- Controllers: {bug-controllers}
- Game Version: {bug-game-version}
- Mod Version: {bug-mod-version}

**Additional context**
{bug-additional}
23 changes: 22 additions & 1 deletion libs/StreamingAssets/SteamVR/bindings_oculus_touch.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/jump"
"output" : "/actions/default/in/hotbarswap"
}
},
"mode" : "button",
Expand Down Expand Up @@ -257,6 +257,9 @@
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/togglehotbaredit"
},
"position" : {
"output" : "/actions/default/in/menujoysticksecondary"
}
Expand Down Expand Up @@ -323,6 +326,24 @@
"sub_mode" : "touch"
},
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/exithotbaredit"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/x"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"extra-files": [
"README.adoc",
".github/ISSUE_TEMPLATE/bug_report.md",
".github/ISSUE_TEMPLATE/bug_report.yml",
"plugin/TechtonicaVr.csproj",
{
"type": "json",
Expand Down
23 changes: 22 additions & 1 deletion unity/Assets/StreamingAssets/SteamVR/bindings_oculus_touch.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/jump"
"output" : "/actions/default/in/hotbarswap"
}
},
"mode" : "button",
Expand Down Expand Up @@ -257,6 +257,9 @@
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/togglehotbaredit"
},
"position" : {
"output" : "/actions/default/in/menujoysticksecondary"
}
Expand Down Expand Up @@ -323,6 +326,24 @@
"sub_mode" : "touch"
},
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/a"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/exithotbaredit"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/x"
}
]
},
Expand Down

0 comments on commit 29579d0

Please sign in to comment.