diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-10 20:25:38 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-07-10 20:25:38 -0400 |
commit | db29d6677f62cb7856e894d3e57db337027bd3f1 (patch) | |
tree | 25e3628ffcc23b29ab65047e33e4f9de92c461a5 /src | |
parent | 234b6403423523d7bfc0333404d0361ad200ff8d (diff) | |
download | SMAPI-db29d6677f62cb7856e894d3e57db337027bd3f1.tar.gz SMAPI-db29d6677f62cb7856e894d3e57db337027bd3f1.tar.bz2 SMAPI-db29d6677f62cb7856e894d3e57db337027bd3f1.zip |
fix legacy controller events broken in 1.15 (#325)
Diffstat (limited to 'src')
-rw-r--r-- | src/StardewModdingAPI/Utilities/SButton.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Utilities/SButton.cs b/src/StardewModdingAPI/Utilities/SButton.cs index c66d5ade..c4833b0b 100644 --- a/src/StardewModdingAPI/Utilities/SButton.cs +++ b/src/StardewModdingAPI/Utilities/SButton.cs @@ -646,7 +646,7 @@ namespace StardewModdingAPI.Utilities /// <returns>Returns whether the value was converted successfully.</returns> public static bool TryGetController(this SButton input, out Buttons button) { - if (Enum.IsDefined(typeof(Keys), (int)input - SButtonExtensions.ControllerOffset)) + if (Enum.IsDefined(typeof(Buttons), (int)input - SButtonExtensions.ControllerOffset)) { button = (Buttons)(input - SButtonExtensions.ControllerOffset); return true; |