mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
DolphinQt: Clean up mapping indicator code and draw lines on "pixel centers".
This commit is contained in:
parent
f79ca680cb
commit
d80fd13b17
5 changed files with 206 additions and 214 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue