OpenXR - VR mode initialization added

This commit is contained in:
Lubos committed 2022-07-08 14:44:20 +02:00
1 parent dc977a2eed
commit 9893e5c4ab
11 files changed
+236 -17

No files matched your search

+8
View File
@@ -96,6 +96,10 @@ using namespace std::placeholders;
static AVIDump avi;
#endif
#ifdef OPENXR
#include "VR/VRBase.h"
#endif
// TODO: Ugly!
static bool frameStep_;
static int lastNumFlips;
@@ -189,6 +193,10 @@ EmuScreen::EmuScreen(const Path &filename)
// Usually, we don't want focus movement enabled on this screen, so disable on start.
// Only if you open chat or dev tools do we want it to start working.
UI::EnableFocusMovement(false);
#ifdef OPENXR
VR_EnterVR(VR_GetEngine());
#endif
}
bool EmuScreen::bootAllowStorage(const Path &filename) {