mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +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:
@ -256,7 +256,7 @@ ControlState Device::Trigger::GetState() const
|
||||
|
||||
ControlState Device::Axis::GetState() const
|
||||
{
|
||||
return std::max( 0.0f, ControlState(m_axis) / m_range );
|
||||
return std::max( 0.0, ControlState(m_axis) / m_range );
|
||||
}
|
||||
|
||||
void Device::Motor::SetState(ControlState state)
|
||||
|
Reference in New Issue
Block a user