From fa3467a94dac9a13bedd87b1459176089f12c851 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 19 Nov 2025 11:39:20 -0800 Subject: [PATCH] Use the product category if the vendorName isn't available --- src/joystick/apple/SDL_mfijoystick.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/joystick/apple/SDL_mfijoystick.m b/src/joystick/apple/SDL_mfijoystick.m index 543016a4f4..2006e7e104 100644 --- a/src/joystick/apple/SDL_mfijoystick.m +++ b/src/joystick/apple/SDL_mfijoystick.m @@ -306,6 +306,12 @@ static bool IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCControlle if (controller.vendorName) { name = controller.vendorName.UTF8String; + } else { + if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) { + if (controller.productCategory) { + name = controller.productCategory.UTF8String; + } + } } if (!name) {