public static void AddBinding(string actionName, KeyCode actionKey, EventModifiers actionModifiers = 0) { UserAction.GetAction(actionName).m_Bindings.Add(new UserAction.BindingSource { key = actionKey, modifiers = actionModifiers }); }
public override string ToString() { List <UserAction.BindingSource> bindings = UserAction.GetAction(this.m_ActionName).bindings; return((bindings.Count <= 0) ? "" : bindings[0].ToString()); }
public static bool IsReleased(string actionName, Event evt) { return(UserAction.GetAction(actionName).IsReleased(evt)); }