ButtonDown
Introduction
Code Example - Checking Buttons
using FlatRedBall.Input; var gamepad = InputManager.Xbox360GamePads[0];
if (gamepad.ButtonDown(Button.A))
{
// do something when the A button is down
}
if (gamepad.ButtonDown(Button.B))
{
// do something when the B button is down
}
if(gamePad.ButtonDown(ButtonPosition.FaceLeft))
{
// do somethign when the left button is down, which could be X or Y
}
Code Example - Checking DPad
Code Example - Checking All Buttons
Last updated
Was this helpful?