SDL Input: Support more types of force feedback for controllers through SDL.

This commit is contained in:
Adam Moss
2015-01-06 19:17:43 +00:00
parent 25fac0282c
commit 306c8d14db
2 changed files with 116 additions and 0 deletions

View File

@ -98,6 +98,30 @@ private:
std::string GetName() const override;
void SetState(ControlState state) override;
};
class SineEffect : public HapticEffect
{
public:
SineEffect(SDL_Haptic* haptic) : HapticEffect(haptic) {}
std::string GetName() const override;
void SetState(ControlState state) override;
};
class TriangleEffect : public HapticEffect
{
public:
TriangleEffect(SDL_Haptic* haptic) : HapticEffect(haptic) {}
std::string GetName() const override;
void SetState(ControlState state) override;
};
class LeftRightEffect : public HapticEffect
{
public:
LeftRightEffect(SDL_Haptic* haptic) : HapticEffect(haptic) {}
std::string GetName() const override;
void SetState(ControlState state) override;
};
#endif
public: