Class MouseButtonHeldCondition

java.lang.Object
com.ardorcraft.util.MouseButtonHeldCondition
All Implemented Interfaces:
Predicate<TwoInputStates>

public final class MouseButtonHeldCondition extends Object implements Predicate<TwoInputStates>
A condition that is true if a given button was pressed when going from the previous input state to the current one.
  • Constructor Details

    • MouseButtonHeldCondition

      public MouseButtonHeldCondition(MouseButton button)
      Construct a new MouseButtonHeldCondition.
      Parameters:
      button - the button that should be pressed to trigger this condition
      Throws:
      NullPointerException - if the button is null
  • Method Details