public static KeyCombinationManager Instance() { if (instance == null) { instance = new KeyCombinationManager(); } return(instance); }
public override TokenManager getHighestLevel() { if (token.Count > 0) { return(this); } else { return(KeyCombinationManager.Instance().getHighestLevel()); } }
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); }