Class InputMappingAxisUtility
Utility class for Unity's Input Manager Mappings.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input.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
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