summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Input/InputStatus.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-02-09 01:04:55 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-02-09 01:04:55 -0500
commit136773678e1ce623bd23f170dca265d31030d200 (patch)
tree129a23f847103e0e15cf30f02fe77771030285d4 /src/SMAPI/Framework/Input/InputStatus.cs
parentf3acc0b07c1d126b03fbf1ea48f45be1308dce97 (diff)
downloadSMAPI-136773678e1ce623bd23f170dca265d31030d200.tar.gz
SMAPI-136773678e1ce623bd23f170dca265d31030d200.tar.bz2
SMAPI-136773678e1ce623bd23f170dca265d31030d200.zip
add helper.Input.GetStatus method
Diffstat (limited to 'src/SMAPI/Framework/Input/InputStatus.cs')
-rw-r--r--src/SMAPI/Framework/Input/InputStatus.cs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/SMAPI/Framework/Input/InputStatus.cs b/src/SMAPI/Framework/Input/InputStatus.cs
deleted file mode 100644
index 99b0006c..00000000
--- a/src/SMAPI/Framework/Input/InputStatus.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace StardewModdingAPI.Framework.Input
-{
- /// <summary>The input status for a button during an update frame.</summary>
- internal enum InputStatus
- {
- /// <summary>The button was neither pressed, held, nor released.</summary>
- None,
-
- /// <summary>The button was pressed in this frame.</summary>
- Pressed,
-
- /// <summary>The button has been held since the last frame.</summary>
- Held,
-
- /// <summary>The button was released in this frame.</summary>
- Released
- }
-
- /// <summary>Extension methods for <see cref="InputStatus"/>.</summary>
- internal static class InputStatusExtensions
- {
- /// <summary>Whether the button was pressed or held.</summary>
- /// <param name="status">The button status.</param>
- public static bool IsDown(this InputStatus status)
- {
- return status == InputStatus.Held || status == InputStatus.Pressed;
- }
- }
-}