More controller drivers support CARTESIAN coordinates.
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Jul 2018 13:28:15 -0700
changeset 12060c5ea08c1b9b6
parent 12059 320b43d5e5a7
child 12061 d7cb1131aada
More controller drivers support CARTESIAN coordinates.
This fixes rumble on the Saitek Cyborg V.3 Rumble Pad
src/haptic/SDL_haptic.c
     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;