using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Input; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsMouseStateChanged : EventArgs { /********* ** Accessors *********/ /// The previous mouse state. public MouseState PriorState { get; private set; } /// The current mouse state. public MouseState NewState { get; private set; } /// The previous mouse position on the screen adjusted for the zoom level. public Point PriorPosition { get; private set; } /// The current mouse position on the screen adjusted for the zoom level. public Point NewPosition { get; private set; } /********* ** Public methods *********/ /// Construct an instance. /// The previous mouse state. /// The current mouse state. /// The previous mouse position on the screen adjusted for the zoom level. /// The current mouse position on the screen adjusted for the zoom level. public EventArgsMouseStateChanged(MouseState priorState, MouseState newState, Point priorPosition, Point newPosition) { this.PriorState = priorState; this.NewState = newState; this.PriorPosition = priorPosition; this.NewPosition = newPosition; } } }