Class TwoInputStates

java.lang.Object
com.ardor3d.input.logical.TwoInputStates

public final class TwoInputStates extends Object
Wrapper class to make it possible to use Predicate-based conditions for triggering actions based on user input.
  • Constructor Details

    • TwoInputStates

      public TwoInputStates(InputState previous, InputState current)
      Instantiates a new TwoInputStates. It is safe for both parameters to point to the same instance, but they cannot be null.
      Parameters:
      previous - the previous input state
      current - the current input state
      Throws:
      NullPointerException - if either parameter is null
  • Method Details