Fix toogle state not resetting

This commit is contained in:
SerpentSpirale 2021-05-21 10:30:55 +02:00
parent 8164f4a9a9
commit d994c12cc3

View File

@ -34,6 +34,7 @@ public class GamepadButton {
public void resetButtonState(){
isDown = false;
toggled = false;
}
public boolean isDown(){
return isToggleable ? toggled : isDown;