Use proper polar direction when creating FF_RUMBLE effect

Uses proper polar direction of 90 degrees. Previous value probably came from mistakenly using spherical system default.
This commit is contained in:
Tomasz Pakuła 2025-01-21 01:43:53 +01:00 committed by Sam Lantinga
parent c6c7469708
commit 10c9fbf411

View file

@ -892,7 +892,7 @@ static bool SDL_SYS_ToFFEffect(struct ff_effect *dest, const SDL_HapticEffect *s
// Header
dest->type = FF_RUMBLE;
dest->direction = 0;
dest->direction = 0x4000;
// Replay
dest->replay.length = (leftright->length == SDL_HAPTIC_INFINITY) ? 0 : CLAMP(leftright->length);