diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2018-12-31 07:31:11 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2018-12-31 08:35:31 -0600 |
| commit | df43fd94725ee1abda8eb0c69efcd116c48db399 (patch) | |
| tree | 02a97e90ae4fd19a23bbb0b5ee5063630c1ed84d /Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp | |
| parent | 5c957ec1909b7dcedbe79f2159dbf48d07bfe72c (diff) | |
ControllerEmu: Killed the Buttons group threshold setting.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp index 268d239f0b..6300a590f0 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ModifySettingsButton.cpp @@ -42,14 +42,14 @@ void ModifySettingsButton::GetState() if (!associated_settings_toggle[i]) { // not toggled - associated_settings[i] = state > numeric_settings[0]->GetValue(); + associated_settings[i] = state > ACTIVATION_THRESHOLD; } else { // toggle (loading savestates does not en-/disable toggle) // after we passed the threshold, we en-/disable. but after that, we don't change it // anymore - if (!threshold_exceeded[i] && state > numeric_settings[0]->GetValue()) + if (!threshold_exceeded[i] && state > ACTIVATION_THRESHOLD) { associated_settings[i] = !associated_settings[i]; @@ -61,7 +61,7 @@ void ModifySettingsButton::GetState() threshold_exceeded[i] = true; } - if (state < numeric_settings[0]->GetValue()) + if (state < ACTIVATION_THRESHOLD) threshold_exceeded[i] = false; } } |
