diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-07 15:36:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-22 23:59:38 -0400 |
commit | 4f87a2b478b9c15ac3eb3d245228e9e72ac847ae (patch) | |
tree | 24dfc131f2378ff9ad454758e403569d2a19b204 | |
parent | dbb9bd84306830456032778fc11fb9a34dd140c7 (diff) | |
download | SMAPI-4f87a2b478b9c15ac3eb3d245228e9e72ac847ae.tar.gz SMAPI-4f87a2b478b9c15ac3eb3d245228e9e72ac847ae.tar.bz2 SMAPI-4f87a2b478b9c15ac3eb3d245228e9e72ac847ae.zip |
fix mouse-changed event never updating prior mouse position
-rw-r--r-- | release-notes.md | 6 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/SGame.cs | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/release-notes.md b/release-notes.md index a5ef4a0b..5c693292 100644 --- a/release-notes.md +++ b/release-notes.md @@ -15,6 +15,12 @@ See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.10). * SMAPI now rewrites many mods for compatibility with game updates, but some mods will need an update. --> +## 1.9.1 +See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.9.1). + +For mod developers: +* Fixed mouse-changed event never updating prior mouse position. + ## 1.9 See [log](https://github.com/Pathoschild/SMAPI/compare/1.8...1.9). diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs index 5f265139..0b4d7494 100644 --- a/src/StardewModdingAPI/Framework/SGame.cs +++ b/src/StardewModdingAPI/Framework/SGame.cs @@ -874,7 +874,7 @@ namespace StardewModdingAPI.Framework { ControlEvents.InvokeMouseChanged(this.Monitor, this.MStatePrior, this.MStateNow, this.MPositionPrior, this.MPositionNow); this.MStatePrior = this.MStateNow; - this.MPositionPrior = this.MPositionPrior; + this.MPositionPrior = this.MPositionNow; } } |