diff options
-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; |