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