testcontroller: update the controller name when it's opened as a gamepad

This commit is contained in:
Sam Lantinga
2024-11-05 11:36:17 -08:00
parent 908b42f2b9
commit ecfd143a26

View File

@@ -1077,6 +1077,7 @@ static void HandleGamepadAdded(SDL_JoystickID id, bool verbose)
}
HandleGamepadRemapped(id);
SetController(id);
}
static void HandleGamepadRemoved(SDL_JoystickID id)