fix incorrect input check, update release notes

This commit is contained in:
Jesse Plamondon-Willard 2019-03-21 23:14:31 -04:00
parent 332bcfa5a1
commit f78502a3a4
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
These changes have not been released yet.
* For players:
* Improved performance.
* Fixed Save Backup not pruning old backups if they're uncompressed.
* Fixed issues when a farmhand reconnects before the game notices they're disconnected.
* Fixed 'received message' logs shown in non-developer mode.

View File

@ -94,7 +94,10 @@ namespace StardewModdingAPI.Framework.Input
this.RealKeyboard = realKeyboard;
this.RealMouse = realMouse;
if (cursorAbsolutePos != this.CursorPositionImpl?.AbsolutePixels || playerTilePos != this.LastPlayerTile)
{
this.LastPlayerTile = playerTilePos;
this.CursorPositionImpl = this.GetCursorPosition(realMouse, cursorAbsolutePos);
}
// update suppressed states
this.SuppressButtons.RemoveWhere(p => !this.GetStatus(activeButtons, p).IsDown());