Package com.ardorcraft.util
Class MouseButtonHeldCondition
java.lang.Object
com.ardorcraft.util.MouseButtonHeldCondition
- All Implemented Interfaces:
Predicate<TwoInputStates>
A condition that is true if a given button was pressed when going from the previous input state to the current one.
-
Constructor Details
-
MouseButtonHeldCondition
Construct a new MouseButtonHeldCondition.- Parameters:
button
- the button that should be pressed to trigger this condition- Throws:
NullPointerException
- if the button is null
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<TwoInputStates>
-