AutofireController - remove autofire flag that was always true

This commit is contained in:
adelikat 2020-12-19 18:55:22 -06:00
parent c730a78994
commit aaa1c8e7a8
1 changed files with 2 additions and 9 deletions

View File

@ -22,8 +22,6 @@ namespace BizHawk.Client.Common
private readonly WorkingDictionary<string, bool> _buttons = new WorkingDictionary<string, bool>();
private readonly WorkingDictionary<string, int> _buttonStarts = new WorkingDictionary<string, int>();
private readonly bool _autofire = true;
public int On { get; set; }
public int Off { get; set; }
@ -31,13 +29,8 @@ namespace BizHawk.Client.Common
public bool IsPressed(string button)
{
if (_autofire)
{
var a = (_emulator.Frame - _buttonStarts[button]) % (On + Off);
return a < On && _buttons[button];
}
return _buttons[button];
var a = (_emulator.Frame - _buttonStarts[button]) % (On + Off);
return a < On && _buttons[button];
}
public void ClearStarts()