Exemple #1
0
        internal KeySetting CreateNew(WinAPI.VK inputKey)
        {
            ConfigurationElement element  = CreateNewElement();
            KeySetting           settings = element as KeySetting;

            settings.InputKey  = inputKey;
            settings.OutputKey = inputKey;
            base.BaseAdd(element);
            return(settings);
        }
Exemple #2
0
 public KeySetting GetOrCreateNew(WinAPI.VK inputKey)
 {
     foreach (KeySetting s in this)
     {
         if (s.InputKey.Equals(inputKey))
         {
             return(s);
         }
     }
     return(CreateNew(inputKey));
 }
Exemple #3
0
 public void Remove(WinAPI.VK inputKey)
 {
     base.BaseRemove(inputKey);
 }