Class MixedRealityInputActionMapping
Maps the capabilities of controllers, defining the physical inputs of a controller.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class MixedRealityInputActionMapping
Remarks
One definition should exist for each physical device input, such as buttons, triggers, joysticks, dpads, etc.
Constructors
MixedRealityInputActionMapping(String, AxisType, DeviceInputType)
The constructor for a new MixedRealityInputActionMapping definition
Declaration
public MixedRealityInputActionMapping(string description, AxisType axisType, DeviceInputType inputType)
Parameters
Type | Name | Description |
---|---|---|
String | description | The description of the interaction mapping. |
AxisType | axisType | |
DeviceInputType | inputType |
MixedRealityInputActionMapping(String, AxisType, DeviceInputType, MixedRealityInputAction)
The constructor for a new MixedRealityInputActionMapping definition
Declaration
public MixedRealityInputActionMapping(string description, AxisType axisType, DeviceInputType inputType, MixedRealityInputAction inputAction)
Parameters
Type | Name | Description |
---|---|---|
String | description | The description of the interaction mapping. |
AxisType | axisType | |
DeviceInputType | inputType | |
MixedRealityInputAction | inputAction | The logical MixedRealityInputAction that this input performs |
Properties
AxisType
The axis type of the button, e.g. Analog, Digital, etc.
Declaration
public AxisType AxisType { get; }
Property Value
Type | Description |
---|---|
AxisType |
Description
The description of the input action mapping.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
InputAction
Action to be raised when the input data has changed.
Declaration
public MixedRealityInputAction InputAction { get; }
Property Value
Type | Description |
---|---|
MixedRealityInputAction |
InputType
The primary action of the input as defined by the controller SDK.
Declaration
public DeviceInputType InputType { get; }
Property Value
Type | Description |
---|---|
DeviceInputType |