mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-10 21:06:20 +02:00
ControllerInterface: Input detection improvements.
This commit is contained in:
1 parent
13b2b93d3d
commit
48b69ca018
7 files changed
+90
-60
No files matched your search
@@ -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