From 2dcaf978443453bc449fa35a99467b455aab4aad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sat, 1 Aug 2015 13:44:13 +0200 Subject: [PATCH] Support envelope in SDL2's periodic effect --- sdl2ffbperiodiceffect.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.43.5