mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DolphinQt: Clean up mapping indicator code and draw lines on "pixel centers".
This commit is contained in:
@ -74,4 +74,9 @@ ControlState MixedTriggers::GetThreshold() const
|
||||
return m_threshold_setting.GetValue() / 100;
|
||||
}
|
||||
|
||||
size_t MixedTriggers::GetTriggerCount() const
|
||||
{
|
||||
return controls.size() / 2;
|
||||
}
|
||||
|
||||
} // namespace ControllerEmu
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
ControlState GetDeadzone() const;
|
||||
ControlState GetThreshold() const;
|
||||
|
||||
size_t GetTriggerCount() const;
|
||||
|
||||
private:
|
||||
SettingValue<double> m_threshold_setting;
|
||||
SettingValue<double> m_deadzone_setting;
|
||||
|
Reference in New Issue
Block a user