mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
fixed the input handler not recognizing gamepads properly
This commit is contained in:
parent
8397f47ec3
commit
3f0e0cf6d3
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ namespace MLEM.Input {
|
||||||
this.MouseState = Mouse.GetState();
|
this.MouseState = Mouse.GetState();
|
||||||
}
|
}
|
||||||
if (this.HandleGamepads) {
|
if (this.HandleGamepads) {
|
||||||
|
this.ConnectedGamepads = GamePad.MaximumGamePadCount;
|
||||||
for (var i = 0; i < GamePad.MaximumGamePadCount; i++) {
|
for (var i = 0; i < GamePad.MaximumGamePadCount; i++) {
|
||||||
this.lastGamepads[i] = this.gamepads[i];
|
this.lastGamepads[i] = this.gamepads[i];
|
||||||
this.gamepads[i] = GamePad.GetState(i);
|
this.gamepads[i] = GamePad.GetState(i);
|
||||||
|
|
Loading…
Reference in a new issue