src/haptic/SDL_haptic.c
changeset 12060 c5ea08c1b9b6
parent 11811 5d94cb6b24d3
child 12304 27ba030d839f
     1.1 --- a/src/haptic/SDL_haptic.c	Thu Jul 12 13:28:13 2018 -0700
     1.2 +++ b/src/haptic/SDL_haptic.c	Thu Jul 12 13:28:15 2018 -0700
     1.3 @@ -765,6 +765,7 @@
     1.4      SDL_zerop(efx);
     1.5      if (haptic->supported & SDL_HAPTIC_SINE) {
     1.6          efx->type = SDL_HAPTIC_SINE;
     1.7 +        efx->periodic.direction.type = SDL_HAPTIC_CARTESIAN;
     1.8          efx->periodic.period = 1000;
     1.9          efx->periodic.magnitude = 0x4000;
    1.10          efx->periodic.length = 5000;