Skip to content

Commit

Permalink
Press on the skybox to reorient
Browse files Browse the repository at this point in the history
So that users don't need to manually press the reorient
button and wait for a long time before everything is ready.

Signed-off-by: Songlin Jiang <[email protected]>
  • Loading branch information
HollowMan6 committed Dec 10, 2023
1 parent affcaad commit 71e18c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/cpp/BrowserWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ BrowserWorld::State::UpdateControllers(bool& aRelayoutWidgets) {
if (togglePressed != toggleWasPressed) {
VRBrowser::HandleMotionEvent(0, controller.index, jboolean(controller.focused), (jboolean) togglePressed, 0.0f, 0.0f);
}
} else if (pressed && !isResizing && !isDragging && !inHeadLockMode) {
reorientRequested = true;
device->Reorient();
}
controller.lastButtonState = controller.buttonState;
}
Expand Down

0 comments on commit 71e18c7

Please sign in to comment.