diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-09 01:04:55 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-02-09 01:04:55 -0500 |
commit | 136773678e1ce623bd23f170dca265d31030d200 (patch) | |
tree | 129a23f847103e0e15cf30f02fe77771030285d4 /src/SMAPI/Framework/ModHelpers | |
parent | f3acc0b07c1d126b03fbf1ea48f45be1308dce97 (diff) | |
download | SMAPI-136773678e1ce623bd23f170dca265d31030d200.tar.gz SMAPI-136773678e1ce623bd23f170dca265d31030d200.tar.bz2 SMAPI-136773678e1ce623bd23f170dca265d31030d200.zip |
add helper.Input.GetStatus method
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/InputHelper.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/InputHelper.cs b/src/SMAPI/Framework/ModHelpers/InputHelper.cs index f4cd12b6..5858cddd 100644 --- a/src/SMAPI/Framework/ModHelpers/InputHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/InputHelper.cs @@ -50,5 +50,12 @@ namespace StardewModdingAPI.Framework.ModHelpers { this.InputState.SuppressButtons.Add(button); } + + /// <summary>Get the status of a button.</summary> + /// <param name="button">The button to check.</param> + public InputStatus GetStatus(SButton button) + { + return this.InputState.GetStatus(button); + } } } |