FlatRedBall.Input.Xbox360GamePad.ButtonPushed

Introduction

The ButtonPushed method returns whether a particular button was pushed. A “push” is defined as occurring when a button is not down the previous frame, but is down the current frame.

Code Example

The following code might be used to cause an Entity to jump when the A button is pushed:

if(InputManager.Xbox360GamePads[0].ButtonPushed(Button.A))
{
   this.Jump();
}