mirror of https://github.com/bjornbytes/lovr.git
DESKTOP_HEADSET -> DESKTOP;
This commit is contained in:
parent
a7250cf4ca
commit
bb78d266b4
|
@ -22,7 +22,7 @@ option(LOVR_USE_WEBXR "Enable the WebXR backend for the headset module" OFF)
|
|||
option(LOVR_USE_OCULUS "Enable the LibOVR backend for the headset module (be sure to also set LOVR_OCULUS_PATH to point to the Oculus SDK)" OFF)
|
||||
option(LOVR_USE_VRAPI "Enable the VrApi backend for the headset module" OFF)
|
||||
option(LOVR_USE_PICO "Enable the Pico backend for the headset module" OFF)
|
||||
option(LOVR_USE_DESKTOP_HEADSET "Enable the keyboard/mouse backend for the headset module" ON)
|
||||
option(LOVR_USE_DESKTOP "Enable the keyboard/mouse backend for the headset module" ON)
|
||||
option(LOVR_USE_STEAM_AUDIO "Enable the Steam Audio spatializer (be sure to also set LOVR_STEAM_AUDIO_PATH)" OFF)
|
||||
option(LOVR_USE_OCULUS_AUDIO "Enable the Oculus Audio spatializer (be sure to also set LOVR_OCULUS_AUDIO_PATH)" OFF)
|
||||
option(LOVR_USE_LINUX_EGL "Use the EGL graphics extension on Linux" OFF)
|
||||
|
@ -61,7 +61,7 @@ if(EMSCRIPTEN)
|
|||
elseif(ANDROID)
|
||||
find_package(Java REQUIRED)
|
||||
set(LOVR_USE_OPENVR OFF)
|
||||
set(LOVR_USE_DESKTOP_HEADSET OFF)
|
||||
set(LOVR_USE_DESKTOP OFF)
|
||||
if(LOVR_BUILD_EXE)
|
||||
set(LOVR_BUILD_SHARED ON)
|
||||
endif()
|
||||
|
@ -523,8 +523,8 @@ if(LOVR_ENABLE_HEADSET)
|
|||
target_compile_definitions(lovr PRIVATE LOVR_USE_WEBXR)
|
||||
target_sources(lovr PRIVATE src/modules/headset/headset_webxr.c)
|
||||
endif()
|
||||
if(LOVR_USE_DESKTOP_HEADSET)
|
||||
target_compile_definitions(lovr PRIVATE LOVR_USE_DESKTOP_HEADSET)
|
||||
if(LOVR_USE_DESKTOP)
|
||||
target_compile_definitions(lovr PRIVATE LOVR_USE_DESKTOP)
|
||||
target_sources(lovr PRIVATE src/modules/headset/headset_desktop.c)
|
||||
endif()
|
||||
else()
|
||||
|
|
|
@ -15,7 +15,7 @@ bool lovrHeadsetInit(HeadsetDriver* drivers, size_t count, float supersample, fl
|
|||
HeadsetInterface* interface = NULL;
|
||||
|
||||
switch (drivers[i]) {
|
||||
#ifdef LOVR_USE_DESKTOP_HEADSET
|
||||
#ifdef LOVR_USE_DESKTOP
|
||||
case DRIVER_DESKTOP: interface = &lovrHeadsetDesktopDriver; break;
|
||||
#endif
|
||||
#ifdef LOVR_USE_OCULUS
|
||||
|
|
Loading…
Reference in New Issue