hyades.MultiInputDevice.MultiInputDevice C# (CSharp) Method

MultiInputDevice() public method

public MultiInputDevice ( PlayerIndex playerIndex ) : System
playerIndex PlayerIndex
return System
        public MultiInputDevice(PlayerIndex playerIndex)
        {
            this.playerIndex = playerIndex;
            x = Application.WIDTH/2;
            y = Application.HEIGHT/2;

            button_map = new Dictionary<Buttons, Keys>();
            button_map[Buttons.A] = Keys.Enter;
            button_map[Buttons.Back] = Keys.Enter;
            button_map[Buttons.B] = Keys.B;
            button_map[Buttons.X] = Keys.X;
            button_map[Buttons.Y] = Keys.Y;
            button_map[Buttons.DPadUp] = Keys.Up;
            button_map[Buttons.DPadDown] = Keys.Down;
            button_map[Buttons.DPadLeft] = Keys.Left;
            button_map[Buttons.DPadRight] = Keys.Right;
            button_map[Buttons.LeftTrigger] = Keys.LeftControl;
            button_map[Buttons.RightTrigger] = Keys.RightControl;
            button_map[Buttons.Start] = Keys.Escape;
        }