From f303ccca64d2bfe99503bd32896e99b111e560dc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 9 Apr 2025 09:17:06 -0700 Subject: [PATCH] Updated the report size for Ultimate 2 Wireless firmware v1.02 --- src/joystick/hidapi/SDL_hidapi_8bitdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_8bitdo.c b/src/joystick/hidapi/SDL_hidapi_8bitdo.c index 8d01467e57..9b64657a9d 100644 --- a/src/joystick/hidapi/SDL_hidapi_8bitdo.c +++ b/src/joystick/hidapi/SDL_hidapi_8bitdo.c @@ -126,7 +126,7 @@ static bool HIDAPI_Driver8BitDo_InitDevice(SDL_HIDAPI_Device *device) device->context = ctx; if (device->product_id == USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS) { - // The Ultimate 2 Wireless v1.02 firmware has < 30 byte reports, v1.03 firmware has 34 byte reports + // The Ultimate 2 Wireless v1.02 firmware has 12 byte reports, v1.03 firmware has 34 byte reports const int ULTIMATE2_WIRELESS_V103_REPORT_SIZE = 34; Uint8 data[USB_PACKET_LENGTH]; int size = SDL_hid_read_timeout(device->dev, data, sizeof(data), 80);