From d48a69e9de61dbc4f92a241caef283ad3e11e371 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sat, 1 Aug 2015 13:43:25 +0200 Subject: [PATCH] Support delay in SDL2's ramp effect --- sdl2ffbrampeffect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdl2ffbrampeffect.cpp b/sdl2ffbrampeffect.cpp index 5fec9fd..ba60f72 100644 --- a/sdl2ffbrampeffect.cpp +++ b/sdl2ffbrampeffect.cpp @@ -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; -- 2.43.5