mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Clarify input_apply_turbo..
This commit is contained in:
parent
05744ca9c7
commit
a5045e4052
@ -541,7 +541,7 @@ static bool input_apply_turbo(unsigned port, unsigned id, bool res)
|
|||||||
g_extern.turbo_enable[port] &= ~(1 << id);
|
g_extern.turbo_enable[port] &= ~(1 << id);
|
||||||
|
|
||||||
if (g_extern.turbo_enable[port] & (1 << id))
|
if (g_extern.turbo_enable[port] & (1 << id))
|
||||||
return res & ((g_extern.turbo_count % g_settings.input.turbo_period) < g_settings.input.turbo_duty_cycle);
|
return res && ((g_extern.turbo_count % g_settings.input.turbo_period) < g_settings.input.turbo_duty_cycle);
|
||||||
else
|
else
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user