OpenXR - Enable 6DoF mode when in game

This commit is contained in:
Lubos committed 2022-07-24 20:04:29 +02:00
1 parent b1e3d8beb3
commit 7a787bd6bf
3 files changed
+19

No files matched your search

+7
View File
@@ -96,6 +96,10 @@ using namespace std::placeholders;
static AVIDump avi;
#endif
#ifdef OPENXR
#include <VR/VRRenderer.h>
#endif
// TODO: Ugly!
static bool frameStep_;
static int lastNumFlips;
@@ -821,6 +825,9 @@ protected:
};
void EmuScreen::CreateViews() {
#ifdef OPENXR
VR_SetMode(VR_MODE_MONO_6DOF);
#endif
using namespace UI;
auto dev = GetI18NCategory("Developer");