Fixed rumble order on PS5

This commit is contained in:
Sam Lantinga
2020-11-16 09:11:15 -08:00
parent eb94c19a63
commit f28c01a4fb
2 changed files with 11 additions and 25 deletions

View File

@@ -328,7 +328,7 @@ HIDAPI_DriverPS4_RumbleJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joystic
}
/* In order to send rumble, we have to send a complete effect packet */
SDL_memset(data, 0, sizeof(data));
SDL_zero(data);
if (ctx->is_bluetooth) {
data[0] = k_EPS4ReportIdBluetoothEffects;