InputCommon: Allow controller settings specified with input expresions.

This commit is contained in:
Jordan Woyak
2020-02-08 14:01:55 -06:00
parent 6a857df219
commit e8152b700f
13 changed files with 172 additions and 28 deletions
@@ -24,13 +24,11 @@ public:
{
for (auto& control : controls)
{
if (control->control_ref->State() > ACTIVATION_THRESHOLD)
if (control->control_ref->GetState<bool>())
*buttons |= *bitmasks;
bitmasks++;
}
}
static constexpr ControlState ACTIVATION_THRESHOLD = 0.5;
};
} // namespace ControllerEmu