瀏覽代碼

Fixed handling the 8BitDo M30 in Nintendo Switch mode

Sam Lantinga 6 年之前
父節點
當前提交
a56aaea139
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/joystick/hidapi/SDL_hidapi_switch.c

+ 2 - 1
src/joystick/hidapi/SDL_hidapi_switch.c

@@ -445,7 +445,8 @@ static SDL_bool BTrySetupUSB(SDL_DriverSwitch_Context *ctx)
         return SDL_FALSE;
         return SDL_FALSE;
     }
     }
     if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_HighSpeed, NULL, 0, SDL_TRUE)) {
     if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_HighSpeed, NULL, 0, SDL_TRUE)) {
-        return SDL_FALSE;
+        /* The 8BitDo M30 doesn't respond to this command, but otherwise works correctly */
+        /*return SDL_FALSE;*/
     }
     }
     if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_Handshake, NULL, 0, SDL_TRUE)) {
     if (!WriteProprietary(ctx, k_eSwitchProprietaryCommandIDs_Handshake, NULL, 0, SDL_TRUE)) {
         return SDL_FALSE;
         return SDL_FALSE;