Xbox360GamePad
Introduction
Xbox360GamePad and Gamepad Hardware
Detecting Button Presses
// Assuming mySprite is a valid Sprite
Xbox360GamePad gamePad = InputManager.Xbox360GamePads[0];
if(gamePad.ButtonPushed(Xbox360GamePad.Button.A))
{
mySprite.X += 32;
}
if(gamePad.ButtonReleased(Xbox360GamePad.Button.B))
{
mySprite.X -= 32;
}Detecting Connected Gamepads
Using the Analog Sticks
Using a Keyboard as a Game Pad
Vibrations
Frequency of Updates
Platform Support
Last updated
Was this helpful?