1
0
mirror of synced 2024-11-28 08:30:55 +01:00

Revert "Removed stop previous effect if not completed"

This reverts commit 268d215366.
This commit is contained in:
Aaron M 2019-10-28 18:07:42 +13:00
parent 268d215366
commit d513e4e606

View File

@ -1092,6 +1092,11 @@ void TriggerConstantEffect(int direction, double strength)
return; return;
} }
// stop previous effect if not completed
if (configResetFeedback) {
SDL_HapticStopEffect(haptic, effects.effect_constant_id);
}
SDL_HapticEffect tempEffect; SDL_HapticEffect tempEffect;
SDL_memset(&tempEffect, 0, sizeof(SDL_HapticEffect)); SDL_memset(&tempEffect, 0, sizeof(SDL_HapticEffect));
tempEffect.type = SDL_HAPTIC_CONSTANT; tempEffect.type = SDL_HAPTIC_CONSTANT;