Added hotkey/menu recenter & Removed head orientation into the view rotation

This commit is contained in:
iChris4 committed 2026-09-08 18:38:47 +02:00
1 parent bf8539999d
commit 6e7e0f075b
4 files changed
+150 -54

No files matched your search

+8
View File
@@ -36,4 +36,12 @@ void OpenXRServiceProducerFrameBoundary() noexcept;
bool OpenXRIsRunning() noexcept;
std::string OpenXRLastError();
// Recenters the view on where the player is sitting now. Position only: the
// forward direction and the horizon come from the OpenXR reference space and
// are never relatched from the headset, so recentering cannot tilt the game's
// horizon. Use the runtime's own recenter gesture to change forward. Callable
// from any thread; serviced on the XR pacing thread and ignored outside an
// immersive race, where the head-locked menu screen has no origin to recenter.
void OpenXRRequestRecenter() noexcept;
} // namespace mkw::vr