/// <summary>Checks if an Action button was pressed</summary> /// <param name="button">The button in question</param> /// <returns>Wether an Action Button was pressed</returns> private bool IsActionButton(SButton button) { //Check the different buttons if (button.Equals(SButton.MouseRight) || button.Equals(SButton.ControllerA) || button.IsActionButton()) { return(true); } return(false); }
public static bool IsMenuActivateButton(SButton b) => ModEntry.GetConfig().key_menu_activate.Contains(b) || b.IsActionButton();
private bool IsPlacementButton(SButton button) { return((button.IsUseToolButton() && !Config.InteractUsingToolButton) || (button.IsActionButton() && Config.InteractUsingToolButton)); }