Browse Source

switch2: Remove some unneeded init commands

These commands seem to be queries the console sends, not setup
Vicki Pfau 1 month ago
parent
commit
9fd3dbfc42
1 changed files with 0 additions and 12 deletions
  1. 0 12
      src/joystick/hidapi/SDL_hidapi_switch2.c

+ 0 - 12
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,
         },