Skip to content

Commit

Permalink
Fix SDL3 build after merging sdl3-current into master.
Browse files Browse the repository at this point in the history
One function call wasn't renamed, the missing function prevented the
build. Patch submitted by @protocultor in a comment to yquake2#1153.
  • Loading branch information
Yamagi committed Oct 6, 2024
1 parent e8eb810 commit 6408cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/input/sdl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6408cc7

Please sign in to comment.