public void Overrides(OverrideAdapter controller) { foreach (var button in controller.Overrides) { _buttons[button] = controller.IsPressed(button); } foreach (var button in controller.AxisOverrides) { _axes[button] = controller.AxisValue(button); } foreach (var button in controller.InversedButtons) { _buttons[button] ^= true; } }
public void Overrides(OverrideAdapter controller) { foreach (var button in controller.Overrides) { _buttons[button] = controller.IsPressed(button); } foreach (var button in controller.FloatOverrides) { _floatButtons[button] = controller.GetFloat(button); } foreach (var button in controller.InversedButtons) { _buttons[button] ^= true; } }