summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/InputCursorMovedEventArgs.cs
blob: 53aac5b3279f0d247cd14126e360daee47f49353 (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 InputCursorMovedEventArgs : 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>
        public InputCursorMovedEventArgs(ICursorPosition oldPosition, ICursorPosition newPosition)
        {
            this.OldPosition = oldPosition;
            this.NewPosition = newPosition;
        }
    }
}