diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-01-17 10:13:32 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-17 08:53:53 -0500 |
| commit | 0bdfa19650ef3b52ccfa5dee3eed5d42efb206b9 (patch) | |
| tree | 548e9237383547d43a909551984edfd710010a54 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | 4fb68c530bc07518948f82ea3475c1ff6d1ca9a0 (diff) | |
ControllerInterface: SDL: Replace unclear bool parameter with enum class.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index d1fa694fae..758988a052 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -251,8 +251,8 @@ evdevDevice::evdevDevice(const std::string& devnode) : m_devfile(devnode) // Rumble (i.e. Left/Right) (i.e. Strong/Weak) effect if (libevdev_has_event_code(m_dev, EV_FF, FF_RUMBLE)) { - AddOutput(new RumbleEffect(m_fd, RumbleEffect::Motor::STRONG)); - AddOutput(new RumbleEffect(m_fd, RumbleEffect::Motor::WEAK)); + AddOutput(new RumbleEffect(m_fd, RumbleEffect::Motor::Strong)); + AddOutput(new RumbleEffect(m_fd, RumbleEffect::Motor::Weak)); } // TODO: Add leds as output devices @@ -383,7 +383,7 @@ std::string evdevDevice::PeriodicEffect::GetName() const std::string evdevDevice::RumbleEffect::GetName() const { - return (Motor::STRONG == m_motor) ? "Strong" : "Weak"; + return (Motor::Strong == m_motor) ? "Strong" : "Weak"; } void evdevDevice::Effect::SetState(ControlState state) @@ -477,7 +477,7 @@ bool evdevDevice::PeriodicEffect::UpdateParameters(ControlState state) bool evdevDevice::RumbleEffect::UpdateParameters(ControlState state) { - u16& value = (Motor::STRONG == m_motor) ? m_effect.u.rumble.strong_magnitude : + u16& value = (Motor::Strong == m_motor) ? m_effect.u.rumble.strong_magnitude : m_effect.u.rumble.weak_magnitude; const u16 old_value = value; |
