Modifier

Partager via


MixedRealityInteractionMapping Class

Definition

Maps the capabilities of controllers, linking the physical inputs of a controller to a logical construct in a runtime project.

public ref class MixedRealityInteractionMapping
[System.Serializable]
public class MixedRealityInteractionMapping
[<System.Serializable>]
type MixedRealityInteractionMapping = class
Public Class MixedRealityInteractionMapping
Inheritance
MixedRealityInteractionMapping
Attributes

Remarks

One definition should exist for each physical device input, such as buttons, triggers, joysticks, dpads, and more.

Constructors

MixedRealityInteractionMapping(MixedRealityInteractionMapping)
MixedRealityInteractionMapping(MixedRealityInteractionMapping, MixedRealityInteractionMappingLegacyInput)
MixedRealityInteractionMapping(UInt32, MixedRealityInputActionMapping)
MixedRealityInteractionMapping(UInt32, MixedRealityInputActionMapping, MixedRealityInteractionMappingLegacyInput)
MixedRealityInteractionMapping(UInt32, String, AxisType, DeviceInputType, KeyCode)

The constructor for a new Interaction Mapping definition

MixedRealityInteractionMapping(UInt32, String, AxisType, DeviceInputType, MixedRealityInputAction, KeyCode, String, String, Boolean, Boolean)

The constructor for a new Interaction Mapping definition

MixedRealityInteractionMapping(UInt32, String, AxisType, DeviceInputType, String, String, Boolean, Boolean)

The constructor for a new Interaction Mapping definition

Properties

AxisCodeX

Optional horizontal or single axis value to get axis data from Unity's old input system.

AxisCodeY

Optional vertical axis value to get axis data from Unity's old input system.

AxisType

The axis type of the button, e.g. Analogue, Digital, etc.

BoolData

The Bool data value.

Changed

Has the value changed since the last reading.

Description

The description of the interaction mapping.

FloatData

The Float data value.

Id

The Id assigned to the Interaction.

InputType

The primary action of the input as defined by the controller SDK.

InvertXAxis

Should the X axis be inverted?

InvertYAxis

Should the Y axis be inverted?

KeyCode

Optional KeyCode value to get input from Unity's old input system.

MixedRealityInputAction

Action to be raised to the Input Manager when the input data has changed.

PoseData

The Pose data value.

PositionData

The ThreeDoF Vector3 Position data value.

RawData

The Raw (object) data value.

RotationData

The ThreeDoF Quaternion Rotation data value.

Vector2Data

The Vector2 data value.

Applies to