]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Support envelope in SDL2's periodic effect
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 11:44:13 +0000 (13:44 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 11:44:13 +0000 (13:44 +0200)
sdl2ffbperiodiceffect.cpp

index 5559c3a8449e5b6ee321df18d85f30e842b6a1c4..c8302f6e59eae4815f46c88799e92ebd09ae42c5 100644 (file)
@@ -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;