diff options
-rw-r--r-- | docs/release-notes.md | 4 | ||||
-rw-r--r-- | src/SMAPI/SButton.cs | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md index e4f9fd1d..e7a06264 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,4 +1,8 @@ # Release notes +## 2.6.1 +* For modders: + * Fixed `.ToSButton()` methods not being public. + ## 2.6 * For players: * Updated for Stardew Valley 1.3. diff --git a/src/SMAPI/SButton.cs b/src/SMAPI/SButton.cs index 3f95169a..bc76c91d 100644 --- a/src/SMAPI/SButton.cs +++ b/src/SMAPI/SButton.cs @@ -604,21 +604,21 @@ namespace StardewModdingAPI *********/ /// <summary>Get the <see cref="SButton"/> equivalent for the given button.</summary> /// <param name="key">The keyboard button to convert.</param> - internal static SButton ToSButton(this Keys key) + public static SButton ToSButton(this Keys key) { return (SButton)key; } /// <summary>Get the <see cref="SButton"/> equivalent for the given button.</summary> /// <param name="key">The controller button to convert.</param> - internal static SButton ToSButton(this Buttons key) + public static SButton ToSButton(this Buttons key) { return (SButton)(SButtonExtensions.ControllerOffset + key); } /// <summary>Get the <see cref="SButton"/> equivalent for the given button.</summary> /// <param name="input">The Stardew Valley button to convert.</param> - internal static SButton ToSButton(this InputButton input) + public static SButton ToSButton(this InputButton input) { // derived from InputButton constructors if (input.mouseLeft) |