mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class InputMappingAxisUtility

    Utility class for Unity's Input Manager Mappings.

    Inheritance
    Object
    InputMappingAxisUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class InputMappingAxisUtility
    Remarks

    Note, with any luck this will be temporary. If it is to remain beyond Alpha, then this needs some refactoring to make a proper component.

    Methods

    CheckUnityInputManagerMappings(InputManagerAxis[])

    Simple static function to check Unity InputManager Axis configuration, and apply if needed.

    Declaration
    public static void CheckUnityInputManagerMappings(InputManagerAxis[] axisMappings)
    Parameters
    Type Name Description
    InputManagerAxis[] axisMappings

    Optional array of Axis Mappings, to configure your own custom set

    Remarks

    This only exists as the Unity input manager CANNOT map Axis to an id, it has to be through a mapping

    CheckUnityInputManagerMappings(InputManagerAxis[])

    Simple static function to check Unity InputManager Axis configuration, and apply if needed.

    Declaration
    public static void CheckUnityInputManagerMappings(InputManagerAxis[] axisMappings)
    Parameters
    Type Name Description
    InputManagerAxis[] axisMappings

    Optional array of Axis Mappings, to configure your own custom set

    Remarks

    This only exists as the Unity input manager CANNOT map Axis to an id, it has to be through a mapping

    DoesAxisNameExist(String)

    Checks our local cache of axis names to see if an axis exists. This cache is refreshed if it's empty or if InputManager.asset has been changed.

    Declaration
    public static bool DoesAxisNameExist(string axisName)
    Parameters
    Type Name Description
    String axisName
    Returns
    Type Description
    Boolean

    DoesAxisNameExist(String)

    Checks our local cache of axis names to see if an axis exists. This cache is refreshed if it's empty or if InputManager.asset has been changed.

    Declaration
    public static bool DoesAxisNameExist(string axisName)
    Parameters
    Type Name Description
    String axisName
    Returns
    Type Description
    Boolean

    RemoveMappings(InputManagerAxis[])

    Simple static function to apply Unity InputManager Axis configuration

    Declaration
    public static void RemoveMappings(InputManagerAxis[] axisMappings)
    Parameters
    Type Name Description
    InputManagerAxis[] axisMappings

    Optional array of Axis Mappings, to configure your own custom set

    Remarks

    This only exists as the Unity input manager CANNOT map Axis to an id, it has to be through a mapping

    RemoveMappings(InputManagerAxis[])

    Simple static function to apply Unity InputManager Axis configuration

    Declaration
    public static void RemoveMappings(InputManagerAxis[] axisMappings)
    Parameters
    Type Name Description
    InputManagerAxis[] axisMappings

    Optional array of Axis Mappings, to configure your own custom set

    Remarks

    This only exists as the Unity input manager CANNOT map Axis to an id, it has to be through a mapping

    In This Article
    • Methods
      • CheckUnityInputManagerMappings(InputManagerAxis[])
      • CheckUnityInputManagerMappings(InputManagerAxis[])
      • DoesAxisNameExist(String)
      • DoesAxisNameExist(String)
      • RemoveMappings(InputManagerAxis[])
      • RemoveMappings(InputManagerAxis[])
    Back to top Generated by DocFX