From c47658a8ef8cb15a9f4053100e1e3186295e7358 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Mon, 7 Jul 2025 11:14:33 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix:=20recheck=20through=20gamep?= =?UTF-8?q?ads=20when=20gamepad=20is=20added=20or=20removed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISLE/isleapp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 09dcaab2..5cc6c9c2 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -474,6 +474,13 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) } break; } + case SDL_EVENT_GAMEPAD_ADDED: + case SDL_EVENT_GAMEPAD_REMOVED: { + if (InputManager()) { + InputManager()->GetJoystick(); + } + break; + } case SDL_EVENT_GAMEPAD_BUTTON_DOWN: { switch (event->gbutton.button) { case SDL_GAMEPAD_BUTTON_DPAD_UP: