ButtonMap
Introduction
Code Example
Microsoft.Xna.Framework.Input.KeyboardButtonMap buttonMap = new Microsfot.Xna.Framework.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;
InputManager.Xbox360GamePads[0].ButtonMap = buttonMap;Last updated
Was this helpful?