From a6fd74fa3bdee9b718e213cec35dfb0193ef9f2a Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 14 Aug 2025 14:49:04 -0700 Subject: [PATCH] Fix crash when enumerating Steam Controllers Closes https://github.com/libsdl-org/SDL/pull/13746 --- src/joystick/hidapi/SDL_hidapi_steam.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_steam.c b/src/joystick/hidapi/SDL_hidapi_steam.c index b48d35393b..6b366515d3 100644 --- a/src/joystick/hidapi/SDL_hidapi_steam.c +++ b/src/joystick/hidapi/SDL_hidapi_steam.c @@ -1038,6 +1038,11 @@ static bool HIDAPI_DriverSteam_IsSupportedDevice(SDL_HIDAPI_Device *device, cons return false; } + if (!device) { + // Might be supported by this driver, enumerate and find out + return true; + } + if (device->is_bluetooth) { return true; }