コード例 #1
0
        /// <summary>
        /// Get Key Enumeration Dictionary for KeyType
        /// </summary>
        /// <param name="keytype"></param>
        /// <returns></returns>
        public Dictionary <string, int> Get(KeyEnum.Type keytype)
        {
            switch (keytype)
            {
            case KeyEnum.Type.Console:
                this.keyEnum = this.Console();
                break;

            case KeyEnum.Type.WindowsForms:
                this.keyEnum = this.WindowsForms();
                break;

            case KeyEnum.Type.WindowsInput:
                this.keyEnum = this.WindowsInput();
                break;

            default:
                this.keyEnum = this.WindowsForms();
                break;
            }

            return(this.keyEnum);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameKeyAndSystemKeyConnector"/> class
 /// </summary>
 /// <param name="keytype"></param>
 public GameKeyAndSystemKeyConnector(KeyEnum.Type keytype)
 {
     this.currentKeyEnumType = this.systemKeys.Get(keytype);
     this.gameKeys.Initialise(Items.Application.Name.EliteDangerous);
     this.KeyType = keytype;
 }