From 509939b1b63e16c21094f550a4627be6a8bf0d72 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 18 Nov 2022 18:20:53 -0800
Subject: [PATCH] Disable the third party PS3 HIDAPI driver by default, the
L3/R3 buttons are unknown
---
src/joystick/hidapi/SDL_hidapi_ps3.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/joystick/hidapi/SDL_hidapi_ps3.c b/src/joystick/hidapi/SDL_hidapi_ps3.c
index 49913d9dff05..10e3bc548f45 100644
--- a/src/joystick/hidapi/SDL_hidapi_ps3.c
+++ b/src/joystick/hidapi/SDL_hidapi_ps3.c
@@ -596,9 +596,13 @@ SDL_HIDAPI_DeviceDriver SDL_HIDAPI_DriverPS3 =
static SDL_bool
HIDAPI_DriverPS3ThirdParty_IsEnabled(void)
{
+#if 1 /* Not enabled by default, we don't know what the L3/R3 buttons are */
+ return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3, SDL_FALSE);
+#else
return SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI_PS3,
SDL_GetHintBoolean(SDL_HINT_JOYSTICK_HIDAPI,
SDL_HIDAPI_DEFAULT));
+#endif
}
static SDL_bool