Add ability to retreive gamepadButton state

This commit is contained in:
SerpentSpirale committed 2021-07-22 21:56:34 +02:00
1 parent b86de4db95
commit 331a637e19
1 file changed
+3
@@ -35,5 +35,8 @@ public class GamepadButton {
public void resetButtonState(){
isDown = false;
}
public boolean isDown(){
return isToggleable ? toggled : isDown;
}
}