From 7061d48dde913d64075ea707ea2860b43bab2bda Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 7 Jan 2024 16:01:18 +1000 Subject: [PATCH] SDLInputSource: Replace hint strings with macros --- pcsx2/Input/SDLInputSource.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pcsx2/Input/SDLInputSource.cpp b/pcsx2/Input/SDLInputSource.cpp index 2f58cab9c6..7be7d706fc 100644 --- a/pcsx2/Input/SDLInputSource.cpp +++ b/pcsx2/Input/SDLInputSource.cpp @@ -245,13 +245,11 @@ void SDLInputSource::SetHints() SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, m_controller_enhanced_mode ? "1" : "0"); SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS5_RUMBLE, m_controller_enhanced_mode ? "1" : "0"); // Enable Wii U Pro Controller support - // New as of SDL 2.26, so use string - SDL_SetHint("SDL_JOYSTICK_HIDAPI_WII", "1"); + SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1"); #ifndef _WIN32 // Gets us pressure sensitive button support on Linux // Apparently doesn't work on Windows, so leave it off there - // New as of SDL 2.26, so use string - SDL_SetHint("SDL_JOYSTICK_HIDAPI_PS3", "1"); + SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS3, "1"); #endif for (const std::pair& hint : m_sdl_hints)