From 9fd3dbfc42a247b996858fe66fa835bdb1f03aa3 Mon Sep 17 00:00:00 2001
From: Vicki Pfau <[EMAIL REDACTED]>
Date: Wed, 12 Nov 2025 16:48:14 -0800
Subject: [PATCH] switch2: Remove some unneeded init commands
These commands seem to be queries the console sends, not setup
---
src/joystick/hidapi/SDL_hidapi_switch2.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/src/joystick/hidapi/SDL_hidapi_switch2.c b/src/joystick/hidapi/SDL_hidapi_switch2.c
index 7fbb95d7b1c61..8f3203fa2dd49 100644
--- a/src/joystick/hidapi/SDL_hidapi_switch2.c
+++ b/src/joystick/hidapi/SDL_hidapi_switch2.c
@@ -391,15 +391,9 @@ static bool HIDAPI_DriverSwitch2_InitUSB(SDL_HIDAPI_Device *device)
(Uint8[]) { // Unknown purpose
0x7, 0x91, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0,
},
- (Uint8[]) { // Unknown purpose
- 0x16, 0x91, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0,
- },
(Uint8[]) { // Set feature output bit mask
0x0c, 0x91, 0x00, 0x02, 0x00, 0x04, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00
},
- (Uint8[]) { // Unknown purpose
- 0x11, 0x91, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0,
- },
(Uint8[]) { // Unknown purpose
0x11, 0x91, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0,
},
@@ -412,18 +406,12 @@ static bool HIDAPI_DriverSwitch2_InitUSB(SDL_HIDAPI_Device *device)
(Uint8[]) { // Enable feature output bits
0x0c, 0x91, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00
},
- (Uint8[]) { // Unknown purpose
- 0x10, 0x91, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0,
- },
(Uint8[]) { // Unknown purpose
0x01, 0x91, 0x0, 0xc, 0x0, 0x0, 0x0, 0x0,
},
(Uint8[]) { // Enable rumble
0x01, 0x91, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0,
},
- (Uint8[]) { // Unknown purpose
- 0x8, 0x91, 0x0, 0x1, 0x0, 0x4, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0,
- },
(Uint8[]) { // Enable grip buttons on charging grip
0x8, 0x91, 0x0, 0x2, 0x0, 0x4, 0x0, 0x0, 0x01, 0x0, 0x0, 0x0,
},