summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Input/MouseStateBuilder.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-24 21:24:38 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-03-24 21:24:38 -0400
commitd0dad43e243864eb8bfdf46c853c5c7fba7c55ed (patch)
treeb43fd6d2a3ad21e477e57eb440523ed73578a0ad /src/SMAPI/Framework/Input/MouseStateBuilder.cs
parent7ca5efbbc576f3c6c43493654b2a0ac040fd4f31 (diff)
parent31db04f4a0814193c98f8875b09aa9bbfa7e0ec5 (diff)
downloadSMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.tar.gz
SMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.tar.bz2
SMAPI-d0dad43e243864eb8bfdf46c853c5c7fba7c55ed.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Input/MouseStateBuilder.cs')
-rw-r--r--src/SMAPI/Framework/Input/MouseStateBuilder.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/Input/MouseStateBuilder.cs b/src/SMAPI/Framework/Input/MouseStateBuilder.cs
index cff3e05e..59956feb 100644
--- a/src/SMAPI/Framework/Input/MouseStateBuilder.cs
+++ b/src/SMAPI/Framework/Input/MouseStateBuilder.cs
@@ -66,9 +66,11 @@ namespace StardewModdingAPI.Framework.Input
{
foreach (var pair in overrides)
{
- bool isDown = pair.Value.IsDown();
if (this.ButtonStates.ContainsKey(pair.Key))
- this.ButtonStates[pair.Key] = isDown ? ButtonState.Pressed : ButtonState.Released;
+ {
+ this.State = null;
+ this.ButtonStates[pair.Key] = pair.Value.IsDown() ? ButtonState.Pressed : ButtonState.Released;
+ }
}
return this;