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