From 78b1476c878d8fb0e66c7656699e36a4044f7692 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 9 Feb 2025 17:05:00 +0100 Subject: [PATCH] use joystick id here --- src/sdl/i_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 6c4644f3d..f278a9884 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1017,7 +1017,7 @@ static void Impl_HandleControllerAxisEvent(SDL_ControllerAxisEvent evt) // Determine the Joystick IDs for each current open joystick for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) { - joyid[i] = SDL_JoystickInstanceID(SDL_GameControllerGetJoystick(JoyInfo[i].dev)); + joyid[i] = JoyInfo[i].id; } event.data1 = event.data2 = event.data3 = INT32_MAX; @@ -1087,7 +1087,7 @@ static void Impl_HandleControllerButtonEvent(SDL_ControllerButtonEvent evt, Uint // Determine the Joystick IDs for each current open joystick for (i = 0; i < MAXSPLITSCREENPLAYERS; i++) { - joyid[i] = SDL_JoystickInstanceID(SDL_GameControllerGetJoystick(JoyInfo[i].dev)); + joyid[i] = JoyInfo[i].id; } if (evt.button == SDL_CONTROLLER_BUTTON_DPAD_UP