private static void PrepareButtonBind(Enum button) { if (!ButtonBinds.ContainsKey(button)) { ButtonBinds.Add(button, new ButtonBind()); } }
public static bool IsButtonPressed(Enum button) { if (IsInputSilenced) { return(false); } return(ButtonBinds.ContainsKey(button) && ButtonBinds[button].IsPressed); }