Add ability to retreive gamepadButton state
This commit is contained in:
1 parent
b86de4db95
commit
331a637e19
1 file changed
+3
+3
@@ -35,5 +35,8 @@ public class GamepadButton {
|
||||
public void resetButtonState(){
|
||||
isDown = false;
|
||||
}
|
||||
public boolean isDown(){
|
||||
return isToggleable ? toggled : isDown;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user