Module technology.sola.engine
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 TypeMethodDescriptionboolean
isActive
(KeyboardInput keyboardInput, MouseInput mouseInput) Checks the state of the input to see if the condition is active or not.state()
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
Checks the state of the input to see if the condition is active or not.- Parameters:
keyboardInput
- theKeyboardInput
mouseInput
- theMouseInput
- Returns:
- true if the condition is active
-