diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-19 23:14:03 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-19 23:14:03 -0500 |
commit | f251f0d06c2942b53dfd69bb79bf12b16a227503 (patch) | |
tree | 9c21a2b1a9e9324fa50f8b9c2bef7d2053f0a5e3 | |
parent | 7e90b1c60aa12d8c552a56738711500cab783be0 (diff) | |
download | SMAPI-f251f0d06c2942b53dfd69bb79bf12b16a227503.tar.gz SMAPI-f251f0d06c2942b53dfd69bb79bf12b16a227503.tar.bz2 SMAPI-f251f0d06c2942b53dfd69bb79bf12b16a227503.zip |
make buttonState.IsDown() extension public (#744)
-rw-r--r-- | docs/release-notes.md | 1 | ||||
-rw-r--r-- | src/SMAPI/SButtonState.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index 5e0e05b6..5f67641b 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -14,6 +14,7 @@ * For modders: * Added [API for multi-key bindings](https://stardewcommunitywiki.com/Modding:Modder_Guide/APIs/Input#KeybindList). * Added a new [`Input.ButtonsChanged` event](https://stardewcommunitywiki.com/Modding:Modder_Guide/APIs/Events#Input.ButtonsChanged). + * Added a `buttonState.IsDown()` extension. * Improved multiplayer APIs: * `PerScreen<T>` now lets you get/set the value for any screen, get all active values, or clear all values. * Peer data for the multiplayer API/events now includes `IsSplitScreen` and `ScreenID` fields. diff --git a/src/SMAPI/SButtonState.cs b/src/SMAPI/SButtonState.cs index 2b78da27..5f3e8d3c 100644 --- a/src/SMAPI/SButtonState.cs +++ b/src/SMAPI/SButtonState.cs @@ -17,7 +17,7 @@ namespace StardewModdingAPI } /// <summary>Extension methods for <see cref="SButtonState"/>.</summary> - internal static class InputStatusExtensions + public static class InputStatusExtensions { /// <summary>Whether the button was pressed or held.</summary> /// <param name="state">The button state.</param> |