diff options
| author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-03-21 16:38:23 -0400 |
|---|---|---|
| committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-03-21 16:38:23 -0400 |
| commit | 75f3600ab1eae06463ae8f386c5ab71f3815142f (patch) | |
| tree | 5bff95c0446b9e70a06c1525fa7387b21ff148cc /src/SMAPI/Utilities | |
| parent | fc5fc54ab1c375e20b3e4f947bb11f08b4983bd1 (diff) | |
| parent | 74215e844ae2af0075e5df3ab6a5f58efff4f981 (diff) | |
| download | SMAPI-75f3600ab1eae06463ae8f386c5ab71f3815142f.tar.gz SMAPI-75f3600ab1eae06463ae8f386c5ab71f3815142f.tar.bz2 SMAPI-75f3600ab1eae06463ae8f386c5ab71f3815142f.zip | |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Utilities')
| -rw-r--r-- | src/SMAPI/Utilities/KeybindList.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/SMAPI/Utilities/KeybindList.cs b/src/SMAPI/Utilities/KeybindList.cs index 1845285a..28cae240 100644 --- a/src/SMAPI/Utilities/KeybindList.cs +++ b/src/SMAPI/Utilities/KeybindList.cs @@ -30,6 +30,11 @@ namespace StardewModdingAPI.Utilities this.IsBound = this.Keybinds.Any(); } + /// <summary>Construct an instance.</summary> + /// <param name="singleKey">A single-key binding.</param> + public KeybindList(SButton singleKey) + : this(new Keybind(singleKey)) { } + /// <summary>Parse a keybind list from a string, and throw an exception if it's not valid.</summary> /// <param name="input">The keybind string. See remarks on <see cref="ToString"/> for format details.</param> /// <exception cref="FormatException">The <paramref name="input"/> format is invalid.</exception> |
