summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2019-02-26 19:46:21 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2019-03-03 18:36:16 -0600
commit48b69ca01841ba724049895a83d8d88ec95d66de (patch)
tree43fda39dfdccc0999afdb0aaa4e2ab1fd5874c39 /Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
parent13b2b93d3d12e4c8491ed82c63d52a24a4849476 (diff)
ControllerInterface: Input detection improvements.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp')
-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 21e39bc416..400f9b078c 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
@@ -259,7 +259,7 @@ std::string Joystick::Hat::GetName() const
ControlState Joystick::Axis::GetState() const
{
- return std::max(0.0, ControlState(m_axis - m_base) / m_range);
+ return ControlState(m_axis - m_base) / m_range;
}
ControlState Joystick::Button::GetState() const