-
public class CommandConditionBuilderHelper class for building command conditions.
-
-
Method Summary
Modifier and Type Method Description Supplier<Boolean>Always()An always true condition. Supplier<Boolean>buttonIsPressed(Supplier<Boolean> buttonReader)Checks is a gamepad button is currently pressed. Supplier<Boolean>buttonWasJustPressed(Supplier<Boolean> buttonReader)Check is a gamepad button was just pressed. Supplier<Boolean>buttonWasJustReleased(Supplier<Boolean> buttonReader)Check is a gamepad button was just pressed. -
-
Method Detail
-
buttonIsPressed
Supplier<Boolean> buttonIsPressed(Supplier<Boolean> buttonReader)
Checks is a gamepad button is currently pressed.
- Parameters:
buttonReader- button check lambda.
-
buttonWasJustPressed
Supplier<Boolean> buttonWasJustPressed(Supplier<Boolean> buttonReader)
Check is a gamepad button was just pressed.
- Parameters:
buttonReader- button check lambda.
-
buttonWasJustReleased
Supplier<Boolean> buttonWasJustReleased(Supplier<Boolean> buttonReader)
Check is a gamepad button was just pressed.
- Parameters:
buttonReader- button check lambda.
-
-
-
-