Revert "Removed stop previous effect if not completed"
This reverts commit 268d215366
.
This commit is contained in:
parent
268d215366
commit
d513e4e606
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user