public class ToggleButtonReader extends ButtonReader
| Constructor and Description | 
|---|
| ToggleButtonReader(java.util.function.BooleanSupplier buttonValue)The constructor that checks the values returned by a boolean supplier
 object. | 
| ToggleButtonReader(GamepadEx gamepad,
                  GamepadKeys.Button button)The constructor that uses the gamepad and button to refer to a certain state toggler. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | getState() | 
isDown, readValue, stateJustChanged, wasJustPressed, wasJustReleasedpublic ToggleButtonReader(GamepadEx gamepad, GamepadKeys.Button button)
gamepad - the gamepad object that contains the buttonnbutton - the button on the ojectpublic ToggleButtonReader(java.util.function.BooleanSupplier buttonValue)
buttonValue - the value supplier