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