ControllerInterface: SDL: Replace unclear bool parameter with enum class.

This commit is contained in:
Jordan Woyak
2019-01-17 10:13:32 -06:00
parent 4fb68c530b
commit 0bdfa19650
4 changed files with 22 additions and 18 deletions

View File

@ -124,13 +124,19 @@ private:
class LeftRightEffect : public HapticEffect
{
public:
LeftRightEffect(SDL_Haptic* haptic, bool use_strong_motor);
enum class Motor : u8
{
Weak,
Strong,
};
LeftRightEffect(SDL_Haptic* haptic, Motor motor);
std::string GetName() const override;
private:
bool UpdateParameters(s16 value) override;
const bool m_use_strong_motor;
const Motor m_motor;
};
#endif