Reset button states when a controller disconnects
This commit is contained in:
parent
af42bbe2fa
commit
f91cdb2101
|
@ -256,6 +256,7 @@ public class Controller {
|
|||
int index = arg0.getGamepad().getIndex();
|
||||
if(connectedControllers.contains(index)) {
|
||||
connectedControllers.remove(index);
|
||||
resetButtonStates();
|
||||
System.out.println("Controller disconnected!");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user