From: Michal MalĂ˝ Date: Sat, 1 Aug 2015 11:44:13 +0000 (+0200) Subject: Support envelope in SDL2's periodic effect X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=2dcaf978443453bc449fa35a99467b455aab4aad;p=FFBChecker.git Support envelope in SDL2's periodic effect --- diff --git a/sdl2ffbperiodiceffect.cpp b/sdl2ffbperiodiceffect.cpp index 5559c3a..c8302f6 100644 --- a/sdl2ffbperiodiceffect.cpp +++ b/sdl2ffbperiodiceffect.cpp @@ -40,6 +40,11 @@ SDL_HapticEffect* SDL2FFBPeriodicEffect::createFFstruct() effect->periodic.delay = m_params->replayDelay; + effect->periodic.attack_length = m_params->attackLength; + effect->periodic.attack_level = m_params->attackLevel; + effect->periodic.fade_length = m_params->fadeLength; + effect->periodic.fade_level = m_params->fadeLevel; + effect->periodic.period = m_params->period; effect->periodic.magnitude = m_params->magnitude; effect->periodic.offset = m_params->offset;