diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-01-17 09:54:07 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-01-17 12:10:50 -0600 |
| commit | 6cc8775510f96437ef3aa987d6d3a3a03e6dff1f (patch) | |
| tree | b222d1156c7aabe2e845f7aab9981d609651e551 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.h | |
| parent | 52aa39991ca9964f491ee241f04f31eb6864ae9e (diff) | |
ControllerInterface: evdev: Replace unclear bool parameter with enum class.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.h | 10 |
1 files changed, 8 insertions, 2 deletions
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: |
