summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs b/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
index 145a4445..9117a0c2 100644
--- a/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
+++ b/src/StardewModdingAPI/Events/EventArgsMouseStateChanged.cs
@@ -3,15 +3,29 @@ using Microsoft.Xna.Framework.Input;
namespace StardewModdingAPI.Events
{
+ /// <summary>Event arguments for a <see cref="ControlEvents.MouseChanged"/> event.</summary>
public class EventArgsMouseStateChanged : EventArgs
{
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The previous mouse state.</summary>
+ public MouseState NewState { get; private set; }
+
+ /// <summary>The current mouse state.</summary>
+ public MouseState PriorState { get; private set; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="priorState">The previous mouse state.</param>
+ /// <param name="newState">The current mouse state.</param>
public EventArgsMouseStateChanged(MouseState priorState, MouseState newState)
{
- PriorState = priorState;
- NewState = newState;
+ this.PriorState = priorState;
+ this.NewState = newState;
}
-
- public MouseState NewState { get; private set; }
- public MouseState PriorState { get; private set; }
}
-} \ No newline at end of file
+}