El gamepad se accede con:
Gamepad.current
if (Gamepad.current.buttonSouth.wasPressedThisFrame)
{
Saltar();
}
Botones comunes:
buttonSouth
buttonNorth
buttonEast
buttonWest
leftShoulder
rightShoulder
startButton
selectButton
Stick izquierdo:
Vector2 movimiento = Gamepad.current.leftStick.ReadValue();
Stick derecho:
Vector2 camara = Gamepad.current.rightStick.ReadValue();
float izquierdo = Gamepad.current.leftTrigger.ReadValue();
float derecho = Gamepad.current.rightTrigger.ReadValue();
Vector2 dpad = Gamepad.current.dpad.ReadValue();