diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b23d351..eeb4a9fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/src/modules/headset/headset.c b/src/modules/headset/headset.c index fed57503..9b6baae6 100644 --- a/src/modules/headset/headset.c +++ b/src/modules/headset/headset.c @@ -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