Skip to content

Commit ba7ec31

Browse files
Lawstorantslouken
authored andcommitted
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 5bf8955)
1 parent 72a9e5e commit ba7ec31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/haptic/linux/SDL_syshaptic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ static int SDL_SYS_ToFFEffect(struct ff_effect *dest, SDL_HapticEffect *src)
878878

879879
/* Header */
880880
dest->type = FF_RUMBLE;
881-
dest->direction = 0;
881+
dest->direction = 0x4000;
882882

883883
/* Replay */
884884
dest->replay.length = (leftright->length == SDL_HAPTIC_INFINITY) ? 0 : CLAMP(leftright->length);

0 commit comments

Comments
 (0)