The ButtonDown method returns whether a button is currently being held down. This will be false if the player is not pushing the button, and it will return true every frame that the button is pressed.

Code Example

The following code shows how to perform logic if the player is holding the A or B buttons on the Xbox360GamePad:

Add the following using statements:
using FlatRedBall.Input;
Later, perform the checks:
 if (InputManager.Xbox360GamePads[0].ButtonDown(Button.A))
     // do something when the A button is down
 if (InputManager.Xbox360GamePads[0].ButtonDown(Button.B))
     // do something when the B button is down