Example #1
0
        public GameKeyboard()
        {
            this.up    = new GameKey(Keys.W);
            this.left  = new GameKey(Keys.A);
            this.down  = new GameKey(Keys.S);
            this.right = new GameKey(Keys.D);
            this.fire  = new GameKey(Keys.Space);
            this.back  = new GameKey(Keys.Escape);

            this.keys = new List <GameKey>();
            this.keys.Add(this.up);
            this.keys.Add(this.left);
            this.keys.Add(this.down);
            this.keys.Add(this.right);
            this.keys.Add(this.fire);
            this.keys.Add(this.back);
        }
        public GameKeyboard()
        {
            this.up = new GameKey(Keys.W);
            this.left = new GameKey(Keys.A);
            this.down = new GameKey(Keys.S);
            this.right = new GameKey(Keys.D);
            this.fire = new GameKey(Keys.Space);
            this.back = new GameKey(Keys.Escape);

            this.keys = new List<GameKey>();
            this.keys.Add(this.up);
            this.keys.Add(this.left);
            this.keys.Add(this.down);
            this.keys.Add(this.right);
            this.keys.Add(this.fire);
            this.keys.Add(this.back);
        }