From eaecab404112a0e716ed4961fc15668aa4dc3d08 Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Fri, 25 Apr 2025 20:37:41 +0200 Subject: [PATCH] bruh --- src/input/controller.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/input/controller.cpp b/src/input/controller.cpp index dd98ec2e6..915a44dfd 100644 --- a/src/input/controller.cpp +++ b/src/input/controller.cpp @@ -265,8 +265,7 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) { } } if (!still_connected) { - AddUserServiceEvent( - {OrbisUserServiceEventType::Logout, SDL_GetGamepadPlayerIndex(pad) + 1}); + AddUserServiceEvent({OrbisUserServiceEventType::Logout, i + 1}); SDL_CloseGamepad(pad); controllers[i]->m_sdl_gamepad = nullptr; controllers[i]->user_id = -1; @@ -289,8 +288,7 @@ void GameControllers::TryOpenSDLControllers(GameControllers& controllers) { controllers[i]->user_id = i + 1; slot_taken[i] = true; controllers[i]->player_index = i; - AddUserServiceEvent( - {OrbisUserServiceEventType::Login, SDL_GetGamepadPlayerIndex(pad) + 1}); + AddUserServiceEvent({OrbisUserServiceEventType::Login, i + 1}); if (SDL_SetGamepadSensorEnabled(controllers[i]->m_sdl_gamepad, SDL_SENSOR_GYRO, true)) {