diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-28 14:28:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-04-28 14:28:48 -0400 |
commit | 2fcc4d92c4c29951d1c669ffe42ebbb78e9a23d1 (patch) | |
tree | 30be4f356105b1f67e74ce81fcf7a617459f4ade /src/SMAPI/Framework/Input/SInputState.cs | |
parent | a625e9bed71c6398a18ec0f5d41d7f8135660efd (diff) | |
download | SMAPI-2fcc4d92c4c29951d1c669ffe42ebbb78e9a23d1.tar.gz SMAPI-2fcc4d92c4c29951d1c669ffe42ebbb78e9a23d1.tar.bz2 SMAPI-2fcc4d92c4c29951d1c669ffe42ebbb78e9a23d1.zip |
fix released-button detection (#453)
Diffstat (limited to 'src/SMAPI/Framework/Input/SInputState.cs')
-rw-r--r-- | src/SMAPI/Framework/Input/SInputState.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Input/SInputState.cs b/src/SMAPI/Framework/Input/SInputState.cs index 62defa9f..1b224737 100644 --- a/src/SMAPI/Framework/Input/SInputState.cs +++ b/src/SMAPI/Framework/Input/SInputState.cs @@ -225,7 +225,7 @@ namespace StardewModdingAPI.Framework.Input activeButtons[button] = this.DeriveStatus(this.GetStatus(previousStatuses, button), isDown: true); // handle released keys - foreach (KeyValuePair<SButton, InputStatus> prev in activeButtons) + foreach (KeyValuePair<SButton, InputStatus> prev in previousStatuses) { if (prev.Value.IsDown() && !activeButtons.ContainsKey(prev.Key)) activeButtons[prev.Key] = InputStatus.Released; |