Просмотр исходного кода

Disable rumble for the Ultimate 2 Wireless Controller in dongle mode

The dongle appears to stop sending input reports with some combination of rumble patterns, easily reproduced with Forza Horizon 5. We'll disable rumble temporarily until @8BitDo can investigate.
Sam Lantinga 3 недель назад
Родитель
Сommit
065fdca953
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      src/joystick/hidapi/SDL_hidapi_8bitdo.c

+ 5 - 0
src/joystick/hidapi/SDL_hidapi_8bitdo.c

@@ -179,6 +179,11 @@ static bool HIDAPI_Driver8BitDo_InitDevice(SDL_HIDAPI_Device *device)
                 ctx->sensors_supported = true;
                 ctx->rumble_supported = true;
                 ctx->powerstate_supported = true;
+
+                if (!device->is_bluetooth) {
+                    // The dongle appears to just stop sending reports after intense rumble activity
+                    ctx->rumble_supported = false;
+                }
             }
             break;
         }