fix incorrect input check, update release notes
This commit is contained in:
parent
16b37e0004
commit
a0fc06c395
|
@ -3,6 +3,7 @@
|
||||||
These changes have not been released yet.
|
These changes have not been released yet.
|
||||||
|
|
||||||
* For players:
|
* For players:
|
||||||
|
* Improved performance.
|
||||||
* SMAPI now prevents invalid items from breaking menus on hover.
|
* SMAPI now prevents invalid items from breaking menus on hover.
|
||||||
* Fixed Save Backup not pruning old backups if they're uncompressed.
|
* 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 issues when a farmhand reconnects before the game notices they're disconnected.
|
||||||
|
|
|
@ -94,7 +94,10 @@ namespace StardewModdingAPI.Framework.Input
|
||||||
this.RealKeyboard = realKeyboard;
|
this.RealKeyboard = realKeyboard;
|
||||||
this.RealMouse = realMouse;
|
this.RealMouse = realMouse;
|
||||||
if (cursorAbsolutePos != this.CursorPositionImpl?.AbsolutePixels || playerTilePos != this.LastPlayerTile)
|
if (cursorAbsolutePos != this.CursorPositionImpl?.AbsolutePixels || playerTilePos != this.LastPlayerTile)
|
||||||
|
{
|
||||||
|
this.LastPlayerTile = playerTilePos;
|
||||||
this.CursorPositionImpl = this.GetCursorPosition(realMouse, cursorAbsolutePos);
|
this.CursorPositionImpl = this.GetCursorPosition(realMouse, cursorAbsolutePos);
|
||||||
|
}
|
||||||
|
|
||||||
// update suppressed states
|
// update suppressed states
|
||||||
this.SuppressButtons.RemoveWhere(p => !this.GetStatus(activeButtons, p).IsDown());
|
this.SuppressButtons.RemoveWhere(p => !this.GetStatus(activeButtons, p).IsDown());
|
||||||
|
|
Loading…
Reference in New Issue