summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Controls.cs
diff options
context:
space:
mode:
authorJames Finlay <jtfinlay@ualberta.ca>2016-03-06 12:25:14 -0800
committerJames Finlay <jtfinlay@ualberta.ca>2016-03-06 12:25:14 -0800
commitac8b73898597a8999e4e03445306d163d4fbcd19 (patch)
tree939775570f25df6bcef362ff7792cee7485e1c5e /StardewModdingAPI/Events/Controls.cs
parent65c7c9b733bf6c6122ea591bba789a914dbd404d (diff)
parentbfe6537f84fe780197c4554f360f19c3f9f12371 (diff)
downloadSMAPI-ac8b73898597a8999e4e03445306d163d4fbcd19.tar.gz
SMAPI-ac8b73898597a8999e4e03445306d163d4fbcd19.tar.bz2
SMAPI-ac8b73898597a8999e4e03445306d163d4fbcd19.zip
Merge
Diffstat (limited to 'StardewModdingAPI/Events/Controls.cs')
-rw-r--r--StardewModdingAPI/Events/Controls.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Controls.cs b/StardewModdingAPI/Events/Controls.cs
index ace890ca..8cf0f431 100644
--- a/StardewModdingAPI/Events/Controls.cs
+++ b/StardewModdingAPI/Events/Controls.cs
@@ -11,6 +11,7 @@ namespace StardewModdingAPI.Events
{
public static event EventHandler<EventArgsKeyboardStateChanged> KeyboardChanged = delegate { };
public static event EventHandler<EventArgsKeyPressed> KeyPressed = delegate { };
+ public static event EventHandler<EventArgsKeyPressed> KeyReleased = delegate { };
public static event EventHandler<EventArgsMouseStateChanged> MouseChanged = delegate { };
public static void InvokeKeyboardChanged(KeyboardState priorState, KeyboardState newState)
@@ -27,5 +28,10 @@ namespace StardewModdingAPI.Events
{
KeyPressed.Invoke(null, new EventArgsKeyPressed(key));
}
+
+ public static void InvokeKeyReleased(Keys key)
+ {
+ KeyReleased.Invoke(null, new EventArgsKeyPressed(key));
+ }
}
}