ControllerInterface: Input detection improvements.

This commit is contained in:
Jordan Woyak
2019-02-26 19:46:21 -06:00
parent 13b2b93d3d
commit 48b69ca018
7 changed files with 90 additions and 60 deletions

View File

@ -259,7 +259,7 @@ std::string Joystick::Hat::GetName() const
ControlState Joystick::Axis::GetState() const
{
return std::max(0.0, ControlState(m_axis - m_base) / m_range);
return ControlState(m_axis - m_base) / m_range;
}
ControlState Joystick::Button::GetState() const