Exemplo n.º 1
0
 public static MultiKeyManager Instance()
 {
     if (instance == null)
     {
         instance = new MultiKeyManager();
     }
     return(instance);
 }
Exemplo n.º 2
0
 public override TokenManager getHighestLevel()
 {
     if (token.Count > 0)
     {
         return(this);
     }
     else
     {
         return(MultiKeyManager.Instance().getHighestLevel());
     }
 }
Exemplo n.º 3
0
        public TokenManager getManager(string key)
        {
            string type = Regex.Match(key, @"(?<=key).").Value;

            switch (type)
            {
            case "%":
                return(KeyManager.Instance());

            case "m":
                return(MultiKeyManager.Instance());

            case "c":
                return(KeyCombinationManager.Instance());

            case "a":
                return(KeyAxisManager.Instance());
            }
            return(null);
        }