summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsInput.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-19 21:26:00 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-19 21:26:00 -0400
commit36b4e550f1945ef710fca2c6deab7df94e708ef7 (patch)
tree388ebc68c07a707a5790df8ee717c4b23d23ae3e /src/SMAPI/Events/EventArgsInput.cs
parenta4fb2331fe57102aa8e8b30efb8095a1edb6b923 (diff)
downloadSMAPI-36b4e550f1945ef710fca2c6deab7df94e708ef7.tar.gz
SMAPI-36b4e550f1945ef710fca2c6deab7df94e708ef7.tar.bz2
SMAPI-36b4e550f1945ef710fca2c6deab7df94e708ef7.zip
fix e.SuppressButton() in input events not suppressing keyboard buttons
Diffstat (limited to 'src/SMAPI/Events/EventArgsInput.cs')
-rw-r--r--src/SMAPI/Events/EventArgsInput.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Events/EventArgsInput.cs b/src/SMAPI/Events/EventArgsInput.cs
index 66cb19f2..617dac35 100644
--- a/src/SMAPI/Events/EventArgsInput.cs
+++ b/src/SMAPI/Events/EventArgsInput.cs
@@ -49,7 +49,7 @@ namespace StardewModdingAPI.Events
{
// keyboard
if (this.Button.TryGetKeyboard(out Keys key))
- Game1.oldKBState = new KeyboardState(Game1.oldKBState.GetPressedKeys().Except(new[] { key }).ToArray());
+ Game1.oldKBState = new KeyboardState(Game1.oldKBState.GetPressedKeys().Union(new[] { key }).ToArray());
// controller
else if (this.Button.TryGetController(out Buttons controllerButton))