From 05ee6f0f425dbda9530a6fb3401d8994bf3182b4 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:54:11 +0200 Subject: [PATCH] Please work --- src/input/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/controller.cpp b/src/input/controller.cpp index c6aae0b6e..63631653c 100644 --- a/src/input/controller.cpp +++ b/src/input/controller.cpp @@ -351,7 +351,7 @@ u8 GameControllers::GetGamepadIndexFromJoystickId(SDL_JoystickID id) { UNREACHABLE_MSG("Gamepad is null!"); } for (int i = 0; i < 4; i++) { - if (controllers[i]->m_sdl_gamepad == gamepad) { + if (SDL_GetGamepadID(controllers[i]->m_sdl_gamepad) == id) { return controllers[i]->player_index; } }