mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-25 20:09:27 -05:00
InputCommon: Eliminate some duplicated button threshold logic.
This commit is contained in:
@@ -23,12 +23,7 @@ public:
|
||||
void GetState(C* const buttons, const C* bitmasks)
|
||||
{
|
||||
for (auto& control : controls)
|
||||
{
|
||||
if (control->control_ref->GetState<bool>())
|
||||
*buttons |= *bitmasks;
|
||||
|
||||
bitmasks++;
|
||||
}
|
||||
*buttons |= *(bitmasks++) * control->GetState<bool>();
|
||||
}
|
||||
};
|
||||
} // namespace ControllerEmu
|
||||
|
||||
Reference in New Issue
Block a user