Skip to content

Commit

Permalink
Replace confirmation action with action for fast reset.
Browse files Browse the repository at this point in the history
I can easily add a confirmation action back in, right now what we need
for feature completeness for replacing OVRAS for bindings is a fast
reset binding.
  • Loading branch information
kitlith committed Aug 12, 2022
1 parent 894d978 commit 9cf8510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bindings/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@
{
"name": "/actions/main/in/request_calibration",
"type": "boolean",
"requirement": "suggested"
"requirement": "optional"
},
{
"name": "/actions/main/in/confirm",
"name": "/actions/main/in/fast_reset",
"type": "boolean",
"requirement": "suggested"
"requirement": "optional"
}
],
"action_sets": [
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ int main(int argc, char* argv[]) {
Trackers trackers = maybe_trackers.value();

VRActionHandle_t calibration_action = GetAction("/actions/main/in/request_calibration");
VRActionHandle_t confirm_action = GetAction("/actions/main/in/confirm");
VRActionHandle_t fast_reset_action = GetAction("/actions/main/in/fast_reset");

//trackers.Detect(false);

Expand Down Expand Up @@ -878,7 +878,7 @@ int main(int argc, char* argv[]) {

// TODO: rename these actions as appropriate, perhaps log them?
trackers.HandleDigitalActionBool(calibration_action, { "calibrate" });
trackers.HandleDigitalActionBool(confirm_action, { "Confirm" });
trackers.HandleDigitalActionBool(fast_reset_action, { "fast reset" });

trackers.Tick(just_connected);

Expand Down

0 comments on commit 9cf8510

Please sign in to comment.