Package com.simsilica.lemur.input
Class InputMapper.StateGroup
java.lang.Object
com.simsilica.lemur.input.InputMapper.StateGroup
- All Implemented Interfaces:
InputMapper.Mapping
,Comparable<InputMapper.StateGroup>
- Enclosing class:
InputMapper
protected class InputMapper.StateGroup
extends Object
implements Comparable<InputMapper.StateGroup>, InputMapper.Mapping
-
Constructor Summary
ConstructorsConstructorDescriptionStateGroup
(FunctionId function, double scale, Object primaryState, Object... modifiers) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
compareTo
(InputMapper.StateGroup other) Returns the additional modifier inputs that must be present for this mapping to be activated.Returns the primary inputs that activates this mapping.double
getScale()
double
getValue()
boolean
hasSameModifiers
(Object[] mods) boolean
boolean
isTrue()
void
void
setScale
(double scale) toString()
void
updateState
(InputState state) void
updateValue
(double value)
-
Constructor Details
-
StateGroup
-
-
Method Details
-
getPrimaryActivator
Description copied from interface:InputMapper.Mapping
Returns the primary inputs that activates this mapping.- Specified by:
getPrimaryActivator
in interfaceInputMapper.Mapping
-
getModifiers
Description copied from interface:InputMapper.Mapping
Returns the additional modifier inputs that must be present for this mapping to be activated.- Specified by:
getModifiers
in interfaceInputMapper.Mapping
-
setScale
public void setScale(double scale) - Specified by:
setScale
in interfaceInputMapper.Mapping
-
getScale
public double getScale()- Specified by:
getScale
in interfaceInputMapper.Mapping
-
hasSameModifiers
-
compareTo
- Specified by:
compareTo
in interfaceComparable<InputMapper.StateGroup>
-
getFunction
- Specified by:
getFunction
in interfaceInputMapper.Mapping
-
getValue
public double getValue() -
updateValue
public void updateValue(double value) -
updateState
-
resetValue
public void resetValue() -
getPrimary
-
isPrimary
-
isTrue
public boolean isTrue() -
areModifiersTrue
public boolean areModifiersTrue() -
toString
-