Reset button states when a controller disconnects

This commit is contained in:
PeytonPlayz595 2024-07-07 20:03:53 -07:00
parent af42bbe2fa
commit f91cdb2101

View File

@ -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!");
}
}