Engines/FlatRedBallXNA/FlatRedBall/Input/Xbox360Gamepad.cs
/// <summary>
/// Creates a ButtonMap for this controller using the default bindings.  This is 
/// a quick way to simulate an Xbox360 controller using the keyboard.
/// </summary>
/// <remarks>
/// This creates the following bindings:
/// * Left analog stick = arrow keys
/// * A button = A key
/// * B button = S key
/// * X button = Q key
/// * Y button = W key
/// * Left trigger = E key
/// * Right trigger = R key
/// * Left shoulder = D key
/// * Right Shoulder = F key
/// * Back button = Backspace key
/// * Start button = Enter key
/// 
/// This will not simulate that the controller is connected, so you will have to set 
/// FakeIsConnected to true if your game checks the connected state.
/// </remarks>
Creates a ButtonMap for this controller using the default bindings.  This is
a quick way to simulate an Xbox360 controller using the keyboard.
Creates a ButtonMap for this controller using the default bindings . This is a quick way to simulate an Xbox360 controller using the keyboard .
public void CreateDefaultButtonMap()
        {
            this.ButtonMap = new KeyboardButtonMap();
            ButtonMap.LeftAnalogLeft = Keys.Left;
            ButtonMap.LeftAnalogRight = Keys.Right;
            ButtonMap.LeftAnalogUp = Keys.Up;
            ButtonMap.LeftAnalogDown = Keys.Down;
            ButtonMap.A = Keys.A;
            ButtonMap.B = Keys.S;
            ButtonMap.X = Keys.Q;
            ButtonMap.Y = Keys.W;
            ButtonMap.LeftTrigger = Keys.E;
            ButtonMap.RightTrigger = Keys.R;
            ButtonMap.LeftShoulder = Keys.D;
            ButtonMap.RightShoulder = Keys.F;
            ButtonMap.Back = Keys.Back;
            ButtonMap.Start = Keys.Enter;
        }
public void CreateDefaultButtonMap ( ) { this . ButtonMap = new KeyboardButtonMap ( ) ; ButtonMap . LeftAnalogLeft = Keys . Left ; ButtonMap . LeftAnalogRight = Keys . Right ; ButtonMap . LeftAnalogUp = Keys . Up ; ButtonMap . LeftAnalogDown = Keys . Down ; ButtonMap . A = Keys . A ; ButtonMap . B = Keys . S ; ButtonMap . X = Keys . Q ; ButtonMap . Y = Keys . W ; ButtonMap . LeftTrigger = Keys . E ; ButtonMap . RightTrigger = Keys . R ; ButtonMap . LeftShoulder = Keys . D ; ButtonMap . RightShoulder = Keys . F ; ButtonMap . Back = Keys . Back ; ButtonMap . Start = Keys . Enter ; }
Creates a ButtonMap for this controller using the default bindings.
Creates a ButtonMap for this controller using the default bindings .
remarks
This creates the following bindings:
Left analog stick = arrow keys
A button = A key
B button = S key
X button = Q key
Y button = W key
Left trigger = E key
Right trigger = R key
Left shoulder = D key
Right Shoulder = F key
Back button = Backspace key
Start button = Enter key

This will not simulate that the controller is connected, so you will have to set
FakeIsConnected to true if your game checks the connected state.
This creates the following bindings : Left analog stick = arrow keys A button = A key B button = S key X button = Q key Y button = W key Left trigger = E key Right trigger = R key Left shoulder = D key Right Shoulder = F key Back button = Backspace key Start button = Enter key This will not simulate that the controller is connected so you will have to set FakeIsConnected to true if your game checks the connected state .