using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace StardewModdingAPI.Events
{
/// Event arguments for a event.
public class EventArgsControllerButtonPressed : EventArgs
{
/*********
** Accessors
*********/
/// The player who pressed the button.
public PlayerIndex PlayerIndex { get; }
/// The controller button that was pressed.
public Buttons ButtonPressed { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The player who pressed the button.
/// The controller button that was pressed.
public EventArgsControllerButtonPressed(PlayerIndex playerIndex, Buttons button)
{
this.PlayerIndex = playerIndex;
this.ButtonPressed = button;
}
}
}