Interface ControlInputCondition<T>

Type Parameters:
T - the type for the state of the input condition (ie pressed, held)
All Known Implementing Classes:
KeyControlInputCondition, MouseButtonControlInputCondition, MouseWheelControlInputCondition

@NullMarked public interface ControlInputCondition<T>
ControlInputCondition indicates whether a condition for a ControlInput is active or not.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isActive(KeyboardInput keyboardInput, MouseInput mouseInput)
    Checks the state of the input to see if the condition is active or not.
    The state the input needs to be in to be considered active.
  • Method Details

    • state

      T state()
      The state the input needs to be in to be considered active.
      Returns:
      the state needed to be considered active
    • isActive

      boolean isActive(KeyboardInput keyboardInput, MouseInput mouseInput)
      Checks the state of the input to see if the condition is active or not.
      Parameters:
      keyboardInput - the KeyboardInput
      mouseInput - the MouseInput
      Returns:
      true if the condition is active