Class MouseButtonClickedCondition

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

public final class MouseButtonClickedCondition extends Object implements Predicate<TwoInputStates>
A condition that is true if a given button was clicked (has a click count) when going from the previous input state to the current one.
  • Constructor Details

    • MouseButtonClickedCondition

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