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 whether the value was converted successfully. 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;