From 6cc8775510f96437ef3aa987d6d3a3a03e6dff1f Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Thu, 17 Jan 2019 09:54:07 -0600 Subject: ControllerInterface: evdev: Replace unclear bool parameter with enum class. --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.h') diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h index cce4044cb9..5196084d24 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.h @@ -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: -- cgit v1.2.3