#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 EventArgsMouseStateChanged : EventArgs
{
/*********
** Accessors
*********/
/// The previous mouse state.
public MouseState PriorState { get; }
/// The current mouse state.
public MouseState NewState { get; }
/// The previous mouse position on the screen adjusted for the zoom level.
public Point PriorPosition { get; }
/// The current mouse position on the screen adjusted for the zoom level.
public Point NewPosition { get; }
/*********
** 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;
}
}
}
#endif