Added VR Linux Build Option

This commit is contained in:
iChris4 committed 2026-05-10 23:03:39 +02:00
1 parent dc45c33318
commit 2103012a9a
6 files changed
+37 -25

No files matched your search

@@ -9,7 +9,7 @@
#include "Common/Logging/Log.h"
#include "Core/HW/WiimoteReal/WiimoteReal.h"
#if defined(ENABLE_VR) && (defined(CIFACE_USE_WIN32) || defined(CIFACE_USE_ANDROID))
#ifdef ENABLE_VR
#include "InputCommon/ControllerInterface/OpenXR/OpenXR.h"
#endif
#ifdef CIFACE_USE_WIN32
@@ -63,9 +63,6 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi)
#ifdef CIFACE_USE_WIN32
m_input_backends.emplace_back(ciface::Win32::CreateInputBackend(this));
#ifdef ENABLE_VR
m_input_backends.emplace_back(ciface::OpenXR::CreateInputBackend(this));
#endif
#endif
#ifdef CIFACE_USE_XLIB
m_input_backends.emplace_back(ciface::XInput2::CreateInputBackend(this));
@@ -78,10 +75,10 @@ void ControllerInterface::Initialize(const WindowSystemInfo& wsi)
#endif
#ifdef CIFACE_USE_ANDROID
m_input_backends.emplace_back(ciface::Android::CreateInputBackend(this));
#endif
#ifdef ENABLE_VR
m_input_backends.emplace_back(ciface::OpenXR::CreateInputBackend(this));
#endif
#endif
#ifdef CIFACE_USE_EVDEV
m_input_backends.emplace_back(ciface::evdev::CreateInputBackend(this));
#endif