gamepads is an instance of FlxGamepadManager - a helper class that can track input from multiple gamepads. The last used gamepad can be null so it should be checked against to prevent errors.
if (FlxG.gamepads.lastActive != null && FlxG.gamepads.lastActive.pressed.A)
{
	sprite.velocity.y = -100;
}
Check out the GamepadTest Demo for more examples.