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.
This commit is contained in:
Yamagi 2024-10-06 21:35:01 +02:00
parent e8eb810c01
commit 6408cc7099

View file

@ -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);