Some players get low-level exceptions when game window loses focus
Pathoschild opened this issue ยท 1 comments
A small number of players get exceptions like this when the game window loses focus:
[13:21:56 ERROR SMAPI] An error occured in the overridden update loop: System.InvalidOperationException: An invalid operation occurred when trying to query the keyboard state. The result code was 0.
em Microsoft.Xna.Framework.Input.Keyboard.GetState(PlayerIndex playerIndex)
em StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) na D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:linha 328
[13:21:56 ERROR SMAPI] An error occured in the overridden update loop: System.InvalidOperationException: An invalid operation occurred when trying to query the keyboard state. The result code was 203.
em Microsoft.Xna.Framework.Input.Keyboard.GetState(PlayerIndex playerIndex)
em StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) na D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:linha 328
[13:21:56 ERROR SMAPI] An error occured in the overridden update loop: System.InvalidOperationException: An invalid operation occurred when trying to query the keyboard state. The result code was 0.
em Microsoft.Xna.Framework.Input.Keyboard.GetState(PlayerIndex playerIndex)
em StardewModdingAPI.Framework.SGame.Update(GameTime gameTime) na D:\source\_Stardew\SMAPI\src\StardewModdingAPI\Framework\SGame.cs:linha 328
Sample log attached.