Class KeyHeldCondition

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

public final class KeyHeldCondition extends Object implements Predicate<TwoInputStates>
A condition that is true when a key is down in the current input state.
  • Constructor Details

    • KeyHeldCondition

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