From 7eb16922908f69af9ab4451e8037b9f5ef4c01d2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 13 Sep 2025 09:14:42 -0700 Subject: [PATCH] Remove SDL3 workaround for missing mouse add events (#711) --- ISLE/isleapp.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index 1b1af42a..da963ddd 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -345,23 +345,6 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv) // Get reference to window *appstate = g_isle->GetWindowHandle(); - // Currently, SDL doesn't send SDL_EVENT_MOUSE_ADDED at startup (unlike for gamepads) - // This will probably be fixed in the future: https://github.com/libsdl-org/SDL/issues/12815 - { - int count; - SDL_MouseID* mice = SDL_GetMice(&count); - - if (mice) { - for (int i = 0; i < count; i++) { - if (InputManager()) { - InputManager()->AddMouse(mice[i]); - } - } - - SDL_free(mice); - } - } - #ifdef __EMSCRIPTEN__ SDL_AddEventWatch( [](void* userdata, SDL_Event* event) -> bool {