IInputReceiver
Introduction
OnFocusUpdate and FlatRedBall.Forms
public void OnFocusUpdate()
{
var gamepads = GuiManager.GamePadsForUiControl;
for (int i = 0; i < xboxGamepads.Count; i++)
{
var gamepad = xboxGamepads[i];
if(gamepad.ButtonPushed(Button.A))
{
// perform logic here
}
}
}Preventing multiple objects from receiving input
TakingInput
Last updated
Was this helpful?