From 6408cc7099ef0a106294cf871c4fc328b3451efa Mon Sep 17 00:00:00 2001 From: Yamagi Date: Sun, 6 Oct 2024 21:35:01 +0200 Subject: [PATCH] Fix SDL3 build after merging sdl3-current into master. One function call wasn't renamed, the missing function prevented the build. Patch submitted by @protocultor in a comment to #1153. --- src/client/input/sdl3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/input/sdl3.c b/src/client/input/sdl3.c index 49e410467..52b97535e 100644 --- a/src/client/input/sdl3.c +++ b/src/client/input/sdl3.c @@ -864,7 +864,7 @@ IN_Update(void) break; case SDL_EVENT_GAMEPAD_REMOVED : - if (controller && event.gdevice.which == SDL_GetJoystickInstanceID(SDL_GetGamepadJoystick(controller))) { + if (controller && event.gdevice.which == SDL_GetJoystickID(SDL_GetGamepadJoystick(controller))) { Cvar_SetValue("paused", 1); IN_Controller_Shutdown(true); IN_Controller_Init(false);