SDL: Don't enable enhanced report mode for Bluetooth Nintendo Switch controllers by default (efaa5)

From efaa58732abb3faf3900b2d93a166b955fbd8ed0 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 10 May 2024 12:17:28 -0700
Subject: [PATCH] Don't enable enhanced report mode for Bluetooth Nintendo
 Switch controllers by default

This breaks applications using them in DirectInput mode, which isn't worth just getting battery status. We'll turn on enhanced mode if the application enables sensors.

(cherry picked from commit a87fa020ac0e282cc147299f7f69f8072de68024)
---
 src/joystick/hidapi/SDL_hidapi_switch.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c
index 0e2257f1c666f..6b5ea4d3a573f 100644
--- a/src/joystick/hidapi/SDL_hidapi_switch.c
+++ b/src/joystick/hidapi/SDL_hidapi_switch.c
@@ -758,7 +758,10 @@ static Uint8 GetDefaultInputMode(SDL_DriverSwitch_Context *ctx)
      * battery level over Bluetooth anyway.
      */
     if (ctx->device->vendor_id == USB_VENDOR_NINTENDO) {
+        /* However, switching to full controller state breaks DirectInput, so let's not do that */
+        #if 0
         input_mode = k_eSwitchInputReportIDs_FullControllerState;
+        #endif
     }
     return input_mode;
 }