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