InputMappingAxisUtility.CheckUnityInputManagerMappings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Simple static function to check Unity InputManager Axis configuration, and apply if needed.
public static bool CheckUnityInputManagerMappings (Microsoft.MixedReality.Toolkit.Utilities.Editor.InputManagerAxis[] axisMappings, bool updateMappings = true);
static member CheckUnityInputManagerMappings : Microsoft.MixedReality.Toolkit.Utilities.Editor.InputManagerAxis[] * bool -> bool
Public Shared Function CheckUnityInputManagerMappings (axisMappings As InputManagerAxis(), Optional updateMappings As Boolean = true) As Boolean
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.