Package com.ardor3d.input.logical
Class MouseButtonPressedCondition
java.lang.Object
com.ardor3d.input.logical.MouseButtonPressedCondition
- 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
-
MouseButtonPressedCondition
Construct a new MouseButtonPressedCondition.- 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>
-