SDL: Use proper polar direction when creating FF_RUMBLE effect (ba7ec)

From ba7ec31927e61a4c3dd13522179244c436f6b246 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tomasz=20Paku=C5=82a?= <[EMAIL REDACTED]>
Date: Tue, 21 Jan 2025 01:47:46 +0100
Subject: [PATCH] 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.

(cherry picked from commit 5bf8955b25db87bee6eefd9c8ff8c7eb3b53c999)
---
 src/haptic/linux/SDL_syshaptic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/haptic/linux/SDL_syshaptic.c b/src/haptic/linux/SDL_syshaptic.c
index 548bb2d211d4c..eb8eb70798abe 100644
--- a/src/haptic/linux/SDL_syshaptic.c
+++ b/src/haptic/linux/SDL_syshaptic.c
@@ -878,7 +878,7 @@ static int SDL_SYS_ToFFEffect(struct ff_effect *dest, SDL_HapticEffect *src)
 
         /* Header */
         dest->type = FF_RUMBLE;
-        dest->direction = 0;
+        dest->direction = 0x4000;
 
         /* Replay */
         dest->replay.length = (leftright->length == SDL_HAPTIC_INFINITY) ? 0 : CLAMP(leftright->length);