diff --git a/BizHawk.Client.Common/ControllerBinding.cs b/BizHawk.Client.Common/ControllerBinding.cs index 8562725963..ea5704453d 100644 --- a/BizHawk.Client.Common/ControllerBinding.cs +++ b/BizHawk.Client.Common/ControllerBinding.cs @@ -21,15 +21,9 @@ namespace BizHawk.Client.Common public ControllerDefinition Definition { get; private set; } - public bool IsPressed(string button) - { - return _buttons[button]; - } + public bool IsPressed(string button) => _buttons[button]; - public float GetFloat(string name) - { - return _floatButtons[name]; - } + public float GetFloat(string name) => _floatButtons[name]; private readonly WorkingDictionary> _bindings = new WorkingDictionary>(); private readonly WorkingDictionary _buttons = new WorkingDictionary(); @@ -83,7 +77,7 @@ namespace BizHawk.Client.Common } // zero 09-mar-2015 - not sure if adding + 1 here is correct.. but... maybe? - float output = 0; + float output; if (range.Max < range.Min) { @@ -233,12 +227,6 @@ namespace BizHawk.Client.Common private bool _autofire = true; - public bool Autofire - { - get => false; - set => _autofire = value; - } - public int On { get; set; } public int Off { get; set; }