diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 02:35:26 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-02 02:35:26 -0400 |
commit | 6f931aa576b2b2f6a64e7e0522e01f6a37c92c8a (patch) | |
tree | 403b30a28e19f5b4936ab85920a5678c562ff766 /src/SMAPI/Events/InputCursorMovedEventArgs.cs | |
parent | 0df7a967a6980db7f4da8d393feae97c968e3375 (diff) | |
download | SMAPI-6f931aa576b2b2f6a64e7e0522e01f6a37c92c8a.tar.gz SMAPI-6f931aa576b2b2f6a64e7e0522e01f6a37c92c8a.tar.bz2 SMAPI-6f931aa576b2b2f6a64e7e0522e01f6a37c92c8a.zip |
add Input.CursorMoved event (#310)
Diffstat (limited to 'src/SMAPI/Events/InputCursorMovedEventArgs.cs')
-rw-r--r-- | src/SMAPI/Events/InputCursorMovedEventArgs.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/SMAPI/Events/InputCursorMovedEventArgs.cs b/src/SMAPI/Events/InputCursorMovedEventArgs.cs new file mode 100644 index 00000000..02e1ee2c --- /dev/null +++ b/src/SMAPI/Events/InputCursorMovedEventArgs.cs @@ -0,0 +1,30 @@ +using System; + +namespace StardewModdingAPI.Events +{ + /// <summary>Event arguments when the in-game cursor is moved.</summary> + public class InputCursorMovedArgsInput : 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 InputCursorMovedArgsInput(ICursorPosition oldPosition, ICursorPosition newPosition) + { + this.OldPosition = oldPosition; + this.NewPosition = newPosition; + } + } +} |