diff options
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r-- | src/SMAPI/Events/ButtonPressedEventArgs.cs | 6 | ||||
-rw-r--r-- | src/SMAPI/Events/ButtonReleasedEventArgs.cs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/SMAPI/Events/ButtonPressedEventArgs.cs b/src/SMAPI/Events/ButtonPressedEventArgs.cs index 5d922666..1b30fd23 100644 --- a/src/SMAPI/Events/ButtonPressedEventArgs.cs +++ b/src/SMAPI/Events/ButtonPressedEventArgs.cs @@ -37,17 +37,17 @@ namespace StardewModdingAPI.Events this.InputState = inputState; } - /// <summary>Whether a mod has indicated the key was already handled, so the game should handle it.</summary> + /// <summary>Get whether a mod has indicated the key was already handled, so the game shouldn't handle it.</summary> public bool IsSuppressed() { return this.IsSuppressed(this.Button); } - /// <summary>Whether a mod has indicated the key was already handled, so the game should handle it.</summary> + /// <summary>Get whether a mod has indicated the key was already handled, so the game shouldn't handle it.</summary> /// <param name="button">The button to check.</param> public bool IsSuppressed(SButton button) { - return this.InputState.SuppressButtons.Contains(button); + return this.InputState.IsSuppressed(button); } /// <summary>Get whether a given button was pressed or held.</summary> diff --git a/src/SMAPI/Events/ButtonReleasedEventArgs.cs b/src/SMAPI/Events/ButtonReleasedEventArgs.cs index f5282230..40ec1cc1 100644 --- a/src/SMAPI/Events/ButtonReleasedEventArgs.cs +++ b/src/SMAPI/Events/ButtonReleasedEventArgs.cs @@ -37,17 +37,17 @@ namespace StardewModdingAPI.Events this.InputState = inputState; } - /// <summary>Whether a mod has indicated the key was already handled, so the game should handle it.</summary> + /// <summary>Get whether a mod has indicated the key was already handled, so the game shouldn't handle it.</summary> public bool IsSuppressed() { return this.IsSuppressed(this.Button); } - /// <summary>Whether a mod has indicated the key was already handled, so the game should handle it.</summary> + /// <summary>Get whether a mod has indicated the key was already handled, so the game shouldn't handle it.</summary> /// <param name="button">The button to check.</param> public bool IsSuppressed(SButton button) { - return this.InputState.SuppressButtons.Contains(button); + return this.InputState.IsSuppressed(button); } /// <summary>Get whether a given button was pressed or held.</summary> |