@FeatureInterface public final class EntityInputController extends FeatureModel
services, setup| Constructor and Description |
|---|
EntityInputController(Services services,
Setup setup)
Create controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(FeatureProvider provider) |
void |
setFireButton(Integer index,
Integer code)
Set the fire button code.
|
void |
setHorizontalControlNegative(Integer code)
Set the horizontal negative control code.
|
void |
setHorizontalControlPositive(Integer code)
Set the horizontal positive control code.
|
void |
setVerticalControlNegative(Integer code)
Set the vertical negative control code.
|
void |
setVerticalControlPositive(Integer code)
Set the vertical positive control code.
|
checkListener, getFeature, getFeatures, getFeaturesType, hasFeaturepublic EntityInputController(Services services, Setup setup)
services - The services reference.setup - The setup reference.LionEngineException - If invalid class control.public void setFireButton(Integer index, Integer code)
index - The button index (must not be null, must be positive).code - The fire button code (must not be null).LionEngineException - If invalid argument.public void setHorizontalControlPositive(Integer code)
code - The horizontal positive control code (must not be null).LionEngineException - If invalid argument.public void setHorizontalControlNegative(Integer code)
code - The horizontal negative control code (must not be null).LionEngineException - If invalid argument.public void setVerticalControlPositive(Integer code)
code - The vertical positive control code (must not be null).LionEngineException - If invalid argument.public void setVerticalControlNegative(Integer code)
code - The vertical negative control code (must not be null).LionEngineException - If invalid argument.public void prepare(FeatureProvider provider)
prepare in interface Featureprepare in class FeatureAbstractCopyright © 2020 Byron 3D Games Studio. All rights reserved.