From bcfaf92f3e155c90bb668cf60f15f9e88e58e710 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 2 Feb 2026 18:14:21 +0100 Subject: [PATCH] this only exists since sdl 2.0.18 not 2.0.14! --- src/sdl/i_system.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index e117f9936..978d95ff1 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -951,6 +951,8 @@ static int joy_open(int playerIndex, int joyIndex) #if (SDL_VERSION_ATLEAST(2,0,14)) JoyInfo[playerIndex].hasled = SDL_GameControllerHasLED(JoyInfo[playerIndex].dev); +#endif +#if (SDL_VERSION_ATLEAST(2,0,18)) JoyInfo[playerIndex].hasrumble = SDL_GameControllerHasRumble(JoyInfo[playerIndex].dev); #endif @@ -1137,7 +1139,7 @@ boolean I_GamepadHasLED(INT32 playernum) boolean I_GamepadHasRumble(INT32 playernum) { -#if !(SDL_VERSION_ATLEAST(2,0,14)) +#if !(SDL_VERSION_ATLEAST(2,0,18)) (void)playernum; return false; #else