From df0d3f1364bdd9e32cc669148f89b78f9f31b8a2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 12 Jul 2018 13:28:15 -0700 Subject: [PATCH] More controller drivers support CARTESIAN coordinates. This fixes rumble on the Saitek Cyborg V.3 Rumble Pad --- src/haptic/SDL_haptic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/haptic/SDL_haptic.c b/src/haptic/SDL_haptic.c index 4988c30ba28ed..48bb818d663d6 100644 --- a/src/haptic/SDL_haptic.c +++ b/src/haptic/SDL_haptic.c @@ -765,6 +765,7 @@ SDL_HapticRumbleInit(SDL_Haptic * haptic) SDL_zerop(efx); if (haptic->supported & SDL_HAPTIC_SINE) { efx->type = SDL_HAPTIC_SINE; + efx->periodic.direction.type = SDL_HAPTIC_CARTESIAN; efx->periodic.period = 1000; efx->periodic.magnitude = 0x4000; efx->periodic.length = 5000;