mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
ControllerInterface: Input detection improvements.
This commit is contained in:
parent
13b2b93d3d
commit
48b69ca018
7 changed files with 90 additions and 60 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue