Package com.b3dgs.lionengine.helper
Class InputControllerConfig
- java.lang.Object
-
- com.b3dgs.lionengine.helper.InputControllerConfig
-
public final class InputControllerConfig extends java.lang.ObjectRepresents the input controller data.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATT_CLASSInput width attribute.static java.lang.StringATT_INDEXCode index attribute.static java.lang.StringATT_VALUECode value attribute.static java.lang.StringNODE_CODECode node name.static java.lang.StringNODE_INPUTInput node name.
-
Constructor Summary
Constructors Constructor Description InputControllerConfig(java.lang.Class<? extends InputDeviceControl> control, java.util.Map<java.lang.Integer,java.lang.Integer> codes)Create a size configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.Integer,java.lang.Integer>getCodes()Get the codes value.java.lang.Class<? extends InputDeviceControl>getControl()Get the control value.static InputControllerConfigimports(Services services, Configurer configurer)Import the data from configurer.static InputControllerConfigimports(Services services, Xml root)Import the data from configurer.
-
-
-
Field Detail
-
NODE_INPUT
public static final java.lang.String NODE_INPUT
Input node name.- See Also:
- Constant Field Values
-
ATT_CLASS
public static final java.lang.String ATT_CLASS
Input width attribute.- See Also:
- Constant Field Values
-
NODE_CODE
public static final java.lang.String NODE_CODE
Code node name.- See Also:
- Constant Field Values
-
ATT_INDEX
public static final java.lang.String ATT_INDEX
Code index attribute.- See Also:
- Constant Field Values
-
ATT_VALUE
public static final java.lang.String ATT_VALUE
Code value attribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InputControllerConfig
public InputControllerConfig(java.lang.Class<? extends InputDeviceControl> control, java.util.Map<java.lang.Integer,java.lang.Integer> codes)
Create a size configuration.- Parameters:
control- The control value.codes- The codes value.
-
-
Method Detail
-
imports
public static InputControllerConfig imports(Services services, Configurer configurer)
Import the data from configurer.- Parameters:
services- The services reference (must not benull).configurer- The configurer reference (must not benull).- Returns:
- The size data.
- Throws:
LionEngineException- If unable to read node.
-
imports
public static InputControllerConfig imports(Services services, Xml root)
Import the data from configurer.- Parameters:
services- The services reference (must not benull).root- The root reference (must not benull).- Returns:
- The data.
- Throws:
LionEngineException- If unable to read node.
-
getControl
public java.lang.Class<? extends InputDeviceControl> getControl()
Get the control value.- Returns:
- The control value.
-
getCodes
public java.util.Map<java.lang.Integer,java.lang.Integer> getCodes()
Get the codes value.- Returns:
- The codes value.
-
-