ControllerEmu: Killed the Buttons group threshold setting.

This commit is contained in:
Jordan Woyak
2018-12-31 07:31:11 -06:00
parent 5c957ec190
commit df43fd9472
4 changed files with 9 additions and 6 deletions

View File

@ -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;
}
}