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; } /// The controller button that was pressed. public Buttons ButtonPressed { 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 pressed. /// The current trigger value. public EventArgsControllerTriggerPressed(PlayerIndex playerIndex, Buttons button, float value) { this.PlayerIndex = playerIndex; this.ButtonPressed = button; this.Value = value; } } }