1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

fixed the input handler not recognizing gamepads properly

This commit is contained in:
Ellpeck 2019-09-09 15:22:15 +02:00
parent 8397f47ec3
commit 3f0e0cf6d3

View file

@ -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);