CMake: Remove unsupported options
This commit is contained in:
@ -481,7 +481,7 @@ static std::array<const char*, static_cast<u32>(InputSourceType::Count)> s_input
|
||||
"XInput",
|
||||
"RawInput",
|
||||
#endif
|
||||
#ifdef WITH_SDL2
|
||||
#ifdef USE_SDL2
|
||||
"SDL",
|
||||
#endif
|
||||
#ifdef __ANDROID__
|
||||
@ -512,17 +512,12 @@ bool InputManager::GetInputSourceDefaultEnabled(InputSourceType type)
|
||||
return false;
|
||||
|
||||
case InputSourceType::XInput:
|
||||
// Disable xinput by default if we have SDL.
|
||||
#ifdef WITH_SDL2
|
||||
return false;
|
||||
#else
|
||||
return true;
|
||||
#endif
|
||||
case InputSourceType::RawInput:
|
||||
return false;
|
||||
#endif
|
||||
|
||||
#ifdef WITH_SDL2
|
||||
#ifdef USE_SDL2
|
||||
case InputSourceType::SDL:
|
||||
return true;
|
||||
#endif
|
||||
@ -1931,7 +1926,7 @@ void InputManager::ReloadSources(SettingsInterface& si, std::unique_lock<std::mu
|
||||
UpdateInputSourceState(si, settings_lock, InputSourceType::XInput, &InputSource::CreateXInputSource);
|
||||
UpdateInputSourceState(si, settings_lock, InputSourceType::RawInput, &InputSource::CreateWin32RawInputSource);
|
||||
#endif
|
||||
#ifdef WITH_SDL2
|
||||
#ifdef USE_SDL2
|
||||
UpdateInputSourceState(si, settings_lock, InputSourceType::SDL, &InputSource::CreateSDLSource);
|
||||
#endif
|
||||
#ifdef __ANDROID__
|
||||
|
||||
Reference in New Issue
Block a user