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

Reset head offset when resuming or recentering on PicoVR #2962

Merged
merged 1 commit into from
Mar 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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