summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsKeyPressed.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsKeyPressed.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsKeyPressed.cs21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsKeyPressed.cs b/src/StardewModdingAPI/Events/EventArgsKeyPressed.cs
index df45e111..82a593be 100644
--- a/src/StardewModdingAPI/Events/EventArgsKeyPressed.cs
+++ b/src/StardewModdingAPI/Events/EventArgsKeyPressed.cs
@@ -3,13 +3,24 @@ using Microsoft.Xna.Framework.Input;
namespace StardewModdingAPI.Events
{
+ /// <summary>Event arguments for a <see cref="ControlEvents.KeyboardChanged"/> event.</summary>
public class EventArgsKeyPressed : EventArgs
{
- public EventArgsKeyPressed(Keys keyPressed)
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The keyboard button that was pressed.</summary>
+ public Keys KeyPressed { get; private set; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="key">The keyboard button that was pressed.</param>
+ public EventArgsKeyPressed(Keys key)
{
- KeyPressed = keyPressed;
+ this.KeyPressed = key;
}
-
- public Keys KeyPressed { get; private set; }
}
-} \ No newline at end of file
+}