summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/OSX
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2014-08-11 13:43:26 -0400
committerRachel Bryk <RachelBryk@gmail.com>2014-09-03 03:08:09 -0400
commit5adbc83453d14b23818442f545ceede0e4548196 (patch)
treebdc853c8e073ad09189a8f2811306105d061fbec /Source/Core/InputCommon/ControllerInterface/OSX
parent64575d565a47e582715aac003d8a0c55cc4ac2ca (diff)
Change ControlState typedef to double, and change all related floats/doubles to use it.
Fixes an off by 1 issue related to double->float->double conversion, and eliminates numerous warnings.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/OSX')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm b/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm
index 89642aecf0..98df7c3535 100644
--- a/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm
+++ b/Source/Core/InputCommon/ControllerInterface/OSX/OSXKeyboard.mm
@@ -253,7 +253,7 @@ ControlState Keyboard::Key::GetState() const
ControlState Keyboard::Cursor::GetState() const
{
- return std::max(0.0f, ControlState(m_axis) / (m_positive ? 1.0f : -1.0f));
+ return std::max(0.0, ControlState(m_axis) / (m_positive ? 1.0 : -1.0));
}
ControlState Keyboard::Button::GetState() const