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 TypeMethodDescriptionbooleanintcompareTo(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.doublegetScale()doublegetValue()booleanhasSameModifiers(Object[] mods) booleanbooleanisTrue()voidvoidsetScale(double scale) toString()voidupdateState(InputState state) voidupdateValue(double value)
-
Constructor Details
-
StateGroup
-
-
Method Details
-
getPrimaryActivator
Description copied from interface:InputMapper.MappingReturns the primary inputs that activates this mapping.- Specified by:
getPrimaryActivatorin interfaceInputMapper.Mapping
-
getModifiers
Description copied from interface:InputMapper.MappingReturns the additional modifier inputs that must be present for this mapping to be activated.- Specified by:
getModifiersin interfaceInputMapper.Mapping
-
setScale
public void setScale(double scale) - Specified by:
setScalein interfaceInputMapper.Mapping
-
getScale
public double getScale()- Specified by:
getScalein interfaceInputMapper.Mapping
-
hasSameModifiers
-
compareTo
- Specified by:
compareToin interfaceComparable<InputMapper.StateGroup>
-
getFunction
- Specified by:
getFunctionin 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
-