summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2020-02-08 18:21:14 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2020-02-08 18:21:14 -0600
commit4f47cccd9f46ca848f7a2923d3429d2b1dc21265 (patch)
treefd588b02e29697a0e50465f84f6641c8a666b072 /Source/Core/InputCommon/ControllerInterface/DInput
parenta205ecb446e5920d1fb6f6ffde6dc83b956fd877 (diff)
Cleanup: Use std::abs instead of abs.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp2
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