Struct MixedRealityInteractionMappingLegacyInput
Represents the subset of data held by a MixedRealityInteractionMapping that represents Unity's legacy input system.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public struct MixedRealityInteractionMappingLegacyInput
Constructors
MixedRealityInteractionMappingLegacyInput(KeyCode, String, String, Boolean, Boolean)
Declaration
public MixedRealityInteractionMappingLegacyInput(KeyCode keyCode = null, string axisCodeX = "", string axisCodeY = "", bool invertXAxis = false, bool invertYAxis = false)
Parameters
Type | Name | Description |
---|---|---|
KeyCode | keyCode | |
String | axisCodeX | |
String | axisCodeY | |
Boolean | invertXAxis | |
Boolean | invertYAxis |
Properties
AxisCodeX
Optional horizontal or single axis value to get axis data from Unity's old input system.
Declaration
public string AxisCodeX { get; }
Property Value
Type | Description |
---|---|
String |
AxisCodeY
Optional vertical axis value to get axis data from Unity's old input system.
Declaration
public string AxisCodeY { get; }
Property Value
Type | Description |
---|---|
String |
InvertXAxis
Should the X axis be inverted?
Declaration
public bool InvertXAxis { get; }
Property Value
Type | Description |
---|---|
Boolean |
InvertYAxis
Should the Y axis be inverted?
Declaration
public bool InvertYAxis { get; }
Property Value
Type | Description |
---|---|
Boolean |
KeyCode
Optional KeyCode value to get input from Unity's old input system.
Declaration
public KeyCode KeyCode { get; }
Property Value
Type | Description |
---|---|
KeyCode |