コード例 #1
0
 private static void PrepareButtonBind(Enum button)
 {
     if (!ButtonBinds.ContainsKey(button))
     {
         ButtonBinds.Add(button, new ButtonBind());
     }
 }
コード例 #2
0
        public static bool IsButtonPressed(Enum button)
        {
            if (IsInputSilenced)
            {
                return(false);
            }

            return(ButtonBinds.ContainsKey(button) && ButtonBinds[button].IsPressed);
        }