mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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:
@ -407,7 +407,7 @@ ControlState Joystick::Button::GetState() const
|
||||
|
||||
ControlState Joystick::Axis::GetState() const
|
||||
{
|
||||
return std::max(0.0f, ControlState(SDL_JoystickGetAxis(m_js, m_index)) / m_range);
|
||||
return std::max(0.0, ControlState(SDL_JoystickGetAxis(m_js, m_index)) / m_range);
|
||||
}
|
||||
|
||||
ControlState Joystick::Hat::GetState() const
|
||||
|
Reference in New Issue
Block a user