Browse Source

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.
Tomasz Pakuła 6 months ago
parent
commit
10c9fbf411
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/haptic/linux/SDL_syshaptic.c

+ 1 - 1
src/haptic/linux/SDL_syshaptic.c

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