Class KeyPressedCondition

java.lang.Object
com.ardor3d.input.logical.KeyPressedCondition
All Implemented Interfaces:
Predicate<TwoInputStates>

public final class KeyPressedCondition extends Object implements 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

      public KeyPressedCondition(Key key)
      Construct a new KeyPressedCondition.
      Parameters:
      key - the key that should be held
      Throws:
      NullPointerException - if the key is null
  • Method Details