diff options
| author | Léo Lam <leo@leolam.fr> | 2019-01-16 21:33:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-16 21:33:05 +0100 |
| commit | e19ee2ad4f8159a9e8f630c8ebc319c748527da8 (patch) | |
| tree | 4d827715af1bac19b0aa3fdbbf34a5d95bc3e5de /Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h | |
| parent | 3892c3ac481cdde5c9631ba0c8845660c7a95586 (diff) | |
| parent | df43fd94725ee1abda8eb0c69efcd116c48db399 (diff) | |
Merge pull request #7664 from jordan-woyak/kill-button-threshold
ControllerEmu: Killed the button group threshold setting.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h index 14621f859a..c2311415e5 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/Buttons.h @@ -24,11 +24,13 @@ public: { for (auto& control : controls) { - if (control->control_ref->State() > numeric_settings[0]->GetValue()) // threshold + if (control->control_ref->State() > ACTIVATION_THRESHOLD) *buttons |= *bitmasks; bitmasks++; } } + + static constexpr ControlState ACTIVATION_THRESHOLD = 0.5; }; } // namespace ControllerEmu |
