From aa7c3eae195582290e282fc3971afd14db124f7e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 16 Nov 2020 09:16:01 -0800 Subject: [PATCH] Fixed size of rumble packet --- src/joystick/hidapi/SDL_hidapi_ps5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_ps5.c b/src/joystick/hidapi/SDL_hidapi_ps5.c index a2341dd97..82bdfdf6b 100644 --- a/src/joystick/hidapi/SDL_hidapi_ps5.c +++ b/src/joystick/hidapi/SDL_hidapi_ps5.c @@ -182,7 +182,7 @@ HIDAPI_DriverPS5_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick) static int HIDAPI_DriverPS5_RumbleJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble) { - Uint8 data[6]; + Uint8 data[5]; /* This works over USB, not over Bluetooth */ SDL_zero(data);