diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-10-31 14:48:23 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2016-10-31 14:48:23 -0400 |
commit | 7fe85119219c17d459fd5a373916dafff7b4e2a2 (patch) | |
tree | 85e17035489dbeeb1ea5d44d18b7e868cfb93754 /src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs | |
parent | d9adaf73869ce768686301ef30687a5fc18048a0 (diff) | |
download | SMAPI-7fe85119219c17d459fd5a373916dafff7b4e2a2.tar.gz SMAPI-7fe85119219c17d459fd5a373916dafff7b4e2a2.tar.bz2 SMAPI-7fe85119219c17d459fd5a373916dafff7b4e2a2.zip |
document & format event code
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs')
-rw-r--r-- | src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs b/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs index 784cd197..42daa4db 100644 --- a/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs +++ b/src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs @@ -3,15 +3,29 @@ using Microsoft.Xna.Framework.Input; namespace StardewModdingAPI.Events { + /// <summary>Event arguments for a <see cref="ControlEvents.KeyboardChanged"/> event.</summary> public class EventArgsKeyboardStateChanged : EventArgs { + /********* + ** Accessors + *********/ + /// <summary>The previous keyboard state.</summary> + public KeyboardState NewState { get; private set; } + + /// <summary>The current keyboard state.</summary> + public KeyboardState PriorState { get; private set; } + + + /********* + ** Public methods + *********/ + /// <summary>Construct an instance.</summary> + /// <param name="priorState">The previous keyboard state.</param> + /// <param name="newState">The current keyboard state.</param> public EventArgsKeyboardStateChanged(KeyboardState priorState, KeyboardState newState) { - NewState = newState; - NewState = newState; + this.NewState = newState; + this.NewState = newState; } - - public KeyboardState NewState { get; private set; } - public KeyboardState PriorState { get; private set; } } -}
\ No newline at end of file +} |