From 84af0bb53afab9d1f80139f6913de3afdd4e88d3 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 2 Sep 2025 09:28:31 -0700 Subject: [PATCH] Updated the 8BitDo Ultimate 2 Wireless Controller dongle update rate The latest dongle firmware appears to update at 1000Hz --- src/joystick/hidapi/SDL_hidapi_8bitdo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/joystick/hidapi/SDL_hidapi_8bitdo.c b/src/joystick/hidapi/SDL_hidapi_8bitdo.c index 95227869da..8b16b72533 100644 --- a/src/joystick/hidapi/SDL_hidapi_8bitdo.c +++ b/src/joystick/hidapi/SDL_hidapi_8bitdo.c @@ -270,6 +270,13 @@ static Uint64 HIDAPI_Driver8BitDo_GetIMURateForProductID(SDL_HIDAPI_Device *devi return 100; } case USB_PRODUCT_8BITDO_ULTIMATE2_WIRELESS: + if (device->is_bluetooth) { + // Note, This is estimated by observation of Bluetooth packets received in the testcontroller tool + return 120; // Observed Bluetooth packet rate seems to be 120hz + } else { + // This firmware appears to update at 1000 Hz over USB dongle + return 1000; + } default: return 120; }