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

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