]> Devoid-pointer.net GitWeb - FFBChecker.git/commitdiff
Add ramp effect to SDL2 effect factory
authorMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 11:46:13 +0000 (13:46 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Sat, 1 Aug 2015 11:46:13 +0000 (13:46 +0200)
sdl2ffbeffectfactory.cpp
sdl2ffbeffectfactory.h

index c7197005b54bcc6031c429f930c09e1568f885c0..ea28aee93788338b44d758e0d566fc4462cfcc74 100644 (file)
@@ -11,6 +11,8 @@ std::shared_ptr<FFBEffect> SDL2FFBEffectFactory::createEffect(FFBEffectTypes typ
       return std::shared_ptr<SDL2FFBEffect>(new SDL2FFBConstantEffect());
     case FFBEffectTypes::PERIODIC:
       return std::shared_ptr<SDL2FFBEffect>(new SDL2FFBPeriodicEffect());
+    case FFBEffectTypes::RAMP:
+      return std::shared_ptr<SDL2FFBEffect>(new SDL2FFBRampEffect());
     default:
       return std::shared_ptr<FFBEffect>(new FFBNullEffect());
   }
index 998742bd1c0e1318dd99df9cbeceb8eb95843b72..afb07098759e5369902d16e8461cc6dcc82022b3 100644 (file)
@@ -6,6 +6,7 @@
 #include "sdl2ffbconstanteffect.h"
 #include "sdl2ffbconditioneffect.h"
 #include "sdl2ffbperiodiceffect.h"
+#include "sdl2ffbrampeffect.h"
 
 class SDL2FFBEffectFactory
 {