summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
diff options
context:
space:
mode:
authorDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-03 09:15:51 +0200
committerDolphin Bot <dolphin-emu-bot@users.noreply.github.com>2014-09-03 09:15:51 +0200
commit6e2b873ec1f5c4c404925b9dfbde863fbaec7102 (patch)
tree8f20661ee614db586ac23a700a572e52a140f5ed /Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
parentdb84a22109fc41e0915aca7cee46d43c11d6d0d8 (diff)
parent5adbc83453d14b23818442f545ceede0e4548196 (diff)
Merge pull request #781 from RachelBryk/ControlState
Change ControlState typedef to double, and change all related floats/dou...
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 1ff48877db..ecd5db838c 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
@@ -266,7 +266,7 @@ std::string Joystick::Hat::GetName() const
ControlState Joystick::Axis::GetState() const
{
- return std::max(0.0f, ControlState(m_axis - m_base) / m_range);
+ return std::max(0.0, ControlState(m_axis - m_base) / m_range);
}
ControlState Joystick::Button::GetState() const