Class InputControllerConfig


  • public final class InputControllerConfig
    extends java.lang.Object
    Represents the input controller data.
    • 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 be null).
        configurer - The configurer reference (must not be null).
        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 be null).
        root - The root reference (must not be null).
        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.