From a2e12767ce34e0bdd97e3fede0650f5fd6936540 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 9 Feb 2025 17:04:49 +0100 Subject: [PATCH] reset joystick id when closing --- src/sdl/i_system.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index b543e6cb5..5e087f7ca 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -412,6 +412,7 @@ static void JoyReset(SDLJoyInfo_t *JoySet) } JoySet->dev = NULL; JoySet->oldjoy = -1; + JoySet->id = -1; JoySet->axises = JoySet->buttons = JoySet->hats = JoySet->balls = 0; //JoySet->scale }