reset joystick id when closing

This commit is contained in:
Alug committed 2025-02-09 17:04:49 +01:00
1 parent e2ec2ff4de
commit a2e12767ce
1 file changed
+1
+1
View File
@@ -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
}