Package com.ardor3d.input.logical
Class MouseButtonClickedCondition
java.lang.Object
com.ardor3d.input.logical.MouseButtonClickedCondition
- All Implemented Interfaces:
Predicate<TwoInputStates>
A condition that is true if a given button was clicked (has a click count) when going from the previous input state
to the current one.
-
Constructor Details
-
MouseButtonClickedCondition
Construct a new MouseButtonClickedCondition.- Parameters:
button
- the button that should be "clicked" to trigger this condition- Throws:
NullPointerException
- if the button is null
-
-
Method Details
-
test
- Specified by:
test
in interfacePredicate<TwoInputStates>
-