Exemplo n.º 1
0
 public static void AddAction(string name, KeyCode key, EventModifiers modifiers = 0)
 {
     UserAction.AddBinding(name, key, modifiers);
 }
        public override string ToString()
        {
            List <UserAction.BindingSource> bindings = UserAction.GetAction(this.m_ActionName).bindings;

            return((bindings.Count <= 0) ? "" : bindings[0].ToString());
        }
Exemplo n.º 3
0
 public static bool IsReleased(string actionName, Event evt)
 {
     return(UserAction.GetAction(actionName).IsReleased(evt));
 }