From 7fe85119219c17d459fd5a373916dafff7b4e2a2 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 31 Oct 2016 14:48:23 -0400 Subject: document & format event code --- .../Events/EventArgsKeyboardStateChanged.cs | 26 +++++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'src/StardewModdingAPI/Events/EventArgsKeyboardStateChanged.cs') 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 { + /// Event arguments for a event. public class EventArgsKeyboardStateChanged : EventArgs { + /********* + ** Accessors + *********/ + /// The previous keyboard state. + public KeyboardState NewState { get; private set; } + + /// The current keyboard state. + public KeyboardState PriorState { get; private set; } + + + /********* + ** Public methods + *********/ + /// Construct an instance. + /// The previous keyboard state. + /// The current keyboard state. 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 +} -- cgit