mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-14 06:40:23 +02:00
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.
This commit is contained in:
1 parent
64575d565a
commit
5adbc83453
16 files changed
+99
-97
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user