Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Reset head offset when resuming or recentering on PicoVR (#2962)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored Mar 13, 2020
1 parent 441566d commit 2880653
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/picovr/cpp/DeviceDelegatePicoVR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ DeviceDelegatePicoVR::Pause() {
void
DeviceDelegatePicoVR::Resume() {
m.paused = false;
m.setHeadOffset = true;
}

void
Expand Down Expand Up @@ -479,6 +480,7 @@ DeviceDelegatePicoVR::UpdateControllerButtons(const int aIndex, const int32_t aB
void
DeviceDelegatePicoVR:: Recenter() {
m.recentered = true;
m.setHeadOffset = true;
}

DeviceDelegatePicoVR::DeviceDelegatePicoVR(State &aState) : m(aState) {}
Expand Down

0 comments on commit 2880653

Please sign in to comment.