summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Input
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-08 00:16:13 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-09-08 00:16:13 -0400
commit8a51279ce943ff74b45ec7af308ecf59d73ace9b (patch)
tree9f342f6aa625be452b02744eee756e539343a4fe /src/SMAPI/Framework/Input
parent5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83 (diff)
parent1b5e7da1847776840c5a26a6254efa1ec43053de (diff)
downloadSMAPI-8a51279ce943ff74b45ec7af308ecf59d73ace9b.tar.gz
SMAPI-8a51279ce943ff74b45ec7af308ecf59d73ace9b.tar.bz2
SMAPI-8a51279ce943ff74b45ec7af308ecf59d73ace9b.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Input')
-rw-r--r--src/SMAPI/Framework/Input/SInputState.cs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/SMAPI/Framework/Input/SInputState.cs b/src/SMAPI/Framework/Input/SInputState.cs
index 3dfeb152..f618608a 100644
--- a/src/SMAPI/Framework/Input/SInputState.cs
+++ b/src/SMAPI/Framework/Input/SInputState.cs
@@ -29,9 +29,6 @@ namespace StardewModdingAPI.Framework.Input
/// <summary>Whether there are new overrides in <see cref="CustomPressedKeys"/> or <see cref="CustomReleasedKeys"/> that haven't been applied to the previous state.</summary>
private bool HasNewOverrides;
- /// <summary>The game tick when the input state was last updated.</summary>
- private uint? LastUpdateTick;
-
/*********
** Accessors
@@ -55,14 +52,13 @@ namespace StardewModdingAPI.Framework.Input
/*********
** Public methods
*********/
- /// <summary>Update the current button states for the given tick. This does nothing if the input has already been updated for this tick (e.g. because SMAPI updated it before the game update).</summary>
- public override void Update()
- {
- // skip if already updated
- if (this.LastUpdateTick == SCore.TicksElapsed)
- return;
- this.LastUpdateTick = SCore.TicksElapsed;
+ /// <summary>This method is called by the game, and does nothing since SMAPI will already have updated by that point.</summary>
+ [Obsolete("This method should only be called by the game itself.")]
+ public override void Update() { }
+ /// <summary>Update the current button states for the given tick.</summary>
+ public void TrueUpdate()
+ {
// update base state
base.Update();