summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/CursorMovedEventArgs.cs
blob: 43ff90ced6ef5757826256d06e480980b0e390aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments when the in-game cursor is moved.</summary>
    public class CursorMovedEventArgs : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The previous cursor position.</summary>
        public ICursorPosition OldPosition { get; }

        /// <summary>The current cursor position.</summary>
        public ICursorPosition NewPosition { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="oldPosition">The previous cursor position.</param>
        /// <param name="newPosition">The new cursor position.</param>
        internal CursorMovedEventArgs(ICursorPosition oldPosition, ICursorPosition newPosition)
        {
            this.OldPosition = oldPosition;
            this.NewPosition = newPosition;
        }
    }
}