summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Events/ModEvents.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-02 01:48:35 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-02 01:48:35 -0400
commit0df7a967a6980db7f4da8d393feae97c968e3375 (patch)
treeb8dcd1332fe3413fac26dc297a08d16f2300b804 /src/SMAPI/Framework/Events/ModEvents.cs
parent97a2bdfdd443b3d5b79f48eb1d718ebf255f5e0f (diff)
downloadSMAPI-0df7a967a6980db7f4da8d393feae97c968e3375.tar.gz
SMAPI-0df7a967a6980db7f4da8d393feae97c968e3375.tar.bz2
SMAPI-0df7a967a6980db7f4da8d393feae97c968e3375.zip
add new-style input events (#310)
Diffstat (limited to 'src/SMAPI/Framework/Events/ModEvents.cs')
-rw-r--r--src/SMAPI/Framework/Events/ModEvents.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Events/ModEvents.cs b/src/SMAPI/Framework/Events/ModEvents.cs
index cc4cf8d7..90853141 100644
--- a/src/SMAPI/Framework/Events/ModEvents.cs
+++ b/src/SMAPI/Framework/Events/ModEvents.cs
@@ -8,6 +8,9 @@ namespace StardewModdingAPI.Framework.Events
/*********
** Accessors
*********/
+ /// <summary>Events raised when the player provides input using a controller, keyboard, or mouse.</summary>
+ public IInputEvents Input { get; }
+
/// <summary>Events raised when something changes in the world.</summary>
public IWorldEvents World { get; }
@@ -20,6 +23,7 @@ namespace StardewModdingAPI.Framework.Events
/// <param name="eventManager">The underlying event manager.</param>
public ModEvents(IModMetadata mod, EventManager eventManager)
{
+ this.Input = new ModInputEvents(mod, eventManager);
this.World = new ModWorldEvents(mod, eventManager);
}
}