diff options
| author | Tilka <tilkax@gmail.com> | 2020-02-09 00:39:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-09 00:39:30 +0000 |
| commit | 0043a2cf3c86ce2b47203fce643b2e3faedab708 (patch) | |
| tree | 6ddd6969f805fc21e72c8890113291014566b021 /Source/Core/InputCommon/ControllerInterface/DInput | |
| parent | 6a857df219f32a6b29683f54100e4cd92edd18e3 (diff) | |
| parent | 4f47cccd9f46ca848f7a2923d3429d2b1dc21265 (diff) | |
Merge pull request #8615 from jordan-woyak/std-abs
Cleanup: Use std::abs instead of abs.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp index ff27eedf44..633950cc2d 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp @@ -310,6 +310,6 @@ ControlState Joystick::Hat::GetState() const if (is_centered) return 0; - return (abs((int)(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2); + return (std::abs(int(m_hat / 4500 - m_direction * 2 + 8) % 8 - 4) > 2); } } // namespace ciface::DInput |
