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

index 5fec9fd83528cc34b2cc713e1d2e3adb6951628b..ba60f72790a70b4d64c86f3c7fd8f4c7d31c4733 100644 (file)
@@ -23,6 +23,8 @@ SDL_HapticEffect* SDL2FFBRampEffect::createFFstruct()
   else
     effect->ramp.length = m_params->replayLength;
 
+  effect->ramp.delay = m_params->replayDelay;
+
   effect->ramp.attack_length = m_params->attackLength;
   effect->ramp.attack_level = m_params->attackLevel;
   effect->ramp.fade_length = m_params->fadeLength;