示例#1
0
 public Action(RebindInput self, Input.Actions action,
               string description)
 {
     this.action      = action;
     this.self        = self;
     this.description = description;
     this.timeoutText = "";
 }
示例#2
0
    private string getActionButtons(Input.Actions act)
    {
        string str = "";

        for (int i = 0; i < 3; i++)
        {
            string tmp = Input.AxisName(act, i);
            if (tmp.Length > 0)
            {
                str += $" or {bold(lightBlue(tmp))}";
            }
        }

        if (str.Length > 4)
        {
            str = str.Substring(4);
        }
        return(str);
    }
示例#3
0
 public static int idx(this Input.Actions a)
 {
     return((int)a);
 }