Update SDL to 3.2.8

This commit is contained in:
Megamouse 2025-01-24 08:27:08 +01:00
parent e4ed5c47a3
commit eb43fbbb2a
28 changed files with 2081 additions and 845 deletions

View file

@ -143,8 +143,8 @@ target_sources(rpcs3_emu PRIVATE
)
if(USE_FAUDIO)
find_package(SDL2)
if(SDL2_FOUND AND SDL2_VERSION VERSION_GREATER_EQUAL 2.0.9)
find_package(SDL3)
if(SDL3_FOUND AND SDL3_VERSION VERSION_GREATER_EQUAL 3.2.0)
target_sources(rpcs3_emu PRIVATE
Audio/FAudio/FAudioBackend.cpp
Audio/FAudio/faudio_enumerator.cpp
@ -641,7 +641,7 @@ endif()
target_link_libraries(rpcs3_emu
PUBLIC
3rdparty::ffmpeg 3rdparty::sdl2
3rdparty::ffmpeg 3rdparty::sdl3
3rdparty::opengl 3rdparty::stblib
3rdparty::vulkan 3rdparty::glew
3rdparty::libusb 3rdparty::wolfssl

View file

@ -50,6 +50,9 @@ public:
color color_override{};
bool color_override_active{};
bool enable_player_leds{};
bool update_player_leds{true};
std::shared_ptr<FusionAhrs> ahrs; // Used to calculate quaternions from sensor data
u64 last_ahrs_update_time_us = 0; // Last ahrs update

View file

@ -19,7 +19,7 @@ void fmt_class_string<pad_handler>::format(std::string& out, u64 arg)
case pad_handler::xinput: return "XInput";
case pad_handler::mm: return "MMJoystick";
#endif
#ifdef HAVE_SDL2
#ifdef HAVE_SDL3
case pad_handler::sdl: return "SDL";
#endif
#ifdef HAVE_LIBEVDEV

View file

@ -15,7 +15,7 @@ enum class pad_handler
xinput,
mm,
#endif
#ifdef HAVE_SDL2
#ifdef HAVE_SDL3
sdl,
#endif
#ifdef HAVE_LIBEVDEV