mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
ControllerInterface: Input detection improvements.
This commit is contained in:
@ -228,7 +228,7 @@ ControlState Device::Trigger::GetState() const
|
||||
|
||||
ControlState Device::Axis::GetState() const
|
||||
{
|
||||
return std::max(0.0, ControlState(m_axis) / m_range);
|
||||
return ControlState(m_axis) / m_range;
|
||||
}
|
||||
|
||||
void Device::Motor::SetState(ControlState state)
|
||||
@ -236,5 +236,5 @@ void Device::Motor::SetState(ControlState state)
|
||||
m_motor = (WORD)(state * m_range);
|
||||
m_parent->UpdateMotors();
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace XInput
|
||||
} // namespace ciface
|
||||
|
Reference in New Issue
Block a user