InputMappingAxisUtility.CheckUnityInputManagerMappings Method

Definition

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

C#
public static bool CheckUnityInputManagerMappings (Microsoft.MixedReality.Toolkit.Utilities.Editor.InputManagerAxis[] axisMappings, bool updateMappings = true);

Parameters

axisMappings
InputManagerAxis[]

Array of axis mappings, to configure your own custom set.

updateMappings
Boolean

If the mappings should be updated to match axisMappings or simply check that they match. Defaults to true.

Returns

True if the mappings needed an update. False if they match axisMappings already.

Remarks

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

Applies to

Produkt Wersje
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0