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

This commit is contained in:
Jordan Woyak
2019-01-17 09:54:07 -06:00
parent 52aa39991c
commit 6cc8775510
2 changed files with 18 additions and 11 deletions

View File

@ -88,12 +88,18 @@ private:
class RumbleEffect : public Effect
{
public:
RumbleEffect(int fd, bool use_strong);
enum class Motor : u8
{
WEAK,
STRONG,
};
RumbleEffect(int fd, Motor motor);
bool UpdateParameters(ControlState state) override;
std::string GetName() const override;
private:
const bool m_use_strong_motor;
const Motor m_motor;
};
public: