fix legacy controller events broken in 1.15 (#325)

This commit is contained in:
Jesse Plamondon-Willard 2017-07-10 20:25:38 -04:00
parent 234b640342
commit db29d6677f
1 changed files with 1 additions and 1 deletions

View File

@ -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;