瀏覽代碼

Only query serial number and firmware versions from Sony PS5 controllers

I don't know of any specific issue with this, but third party PS4 controllers have had issues with reports that are specific to Sony hardware, so this is a speculative change to prevent issues with future controllers.

If it turns out that these reports are valid and useful for third party controllers, we can back this change out.
Sam Lantinga 2 年之前
父節點
當前提交
75a020aa6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_ps5.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_ps5.c

@@ -412,7 +412,7 @@ static SDL_bool HIDAPI_DriverPS5_InitDevice(SDL_HIDAPI_Device *device)
         /* Connected over Bluetooth, using simple reports (DirectInput enabled) */
     }
 
-    if (ctx->enhanced_reports) {
+    if (device->vendor_id == USB_VENDOR_SONY && ctx->enhanced_reports) {
         /* Read the serial number (Bluetooth address in reverse byte order)
            This will also enable enhanced reports over Bluetooth
         */