From 558f62eb07f8f3327a8e77afd6b7b164ea322cb5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 14 Jul 2026 15:24:49 -0700
Subject: [PATCH] Don't accidentally switch the Horipad Mini into Switch report
mode
The PS3 probing switches the HORI Horipad Mini into Nintendo Switch report mode, which we don't recognize since it's still using the Xbox 360 endpoint.
(cherry picked from commit 2d7f300783215f6ae3361a43a3c71f02d813c621)
---
src/joystick/SDL_joystick.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 290f35ed413e6..77539c9bd1432 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -3086,7 +3086,7 @@ SDL_GamepadType SDL_GetGamepadTypeFromVIDPID(Uint16 vendor, Uint16 product, cons
if (forUI) {
type = SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO;
} else {
- type = SDL_GAMEPAD_TYPE_STANDARD;
+ type = SDL_GAMEPAD_TYPE_XBOX360;
}
break;
default: