From 3f0e0cf6d30939158c7a0b44a726af1896d0af3f Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 9 Sep 2019 15:22:15 +0200 Subject: [PATCH] fixed the input handler not recognizing gamepads properly --- MLEM/Input/InputHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MLEM/Input/InputHandler.cs b/MLEM/Input/InputHandler.cs index 4922625..5601d20 100644 --- a/MLEM/Input/InputHandler.cs +++ b/MLEM/Input/InputHandler.cs @@ -93,6 +93,7 @@ namespace MLEM.Input { this.MouseState = Mouse.GetState(); } if (this.HandleGamepads) { + this.ConnectedGamepads = GamePad.MaximumGamePadCount; for (var i = 0; i < GamePad.MaximumGamePadCount; i++) { this.lastGamepads[i] = this.gamepads[i]; this.gamepads[i] = GamePad.GetState(i);