Class CVRInput
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.OpenVR.Headers
Assembly: cs.temp.dll.dll
Syntax
public class CVRInput
Methods
DecompressSkeletalBoneData(IntPtr, UInt32, EVRSkeletalTransformSpace, VRBoneTransform_t[])
Declaration
public EVRInputError DecompressSkeletalBoneData(IntPtr pvCompressedBuffer, uint unCompressedBufferSize, EVRSkeletalTransformSpace eTransformSpace, VRBoneTransform_t[] pTransformArray)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | pvCompressedBuffer | |
UInt32 | unCompressedBufferSize | |
EVRSkeletalTransformSpace | eTransformSpace | |
VRBoneTransform_t[] | pTransformArray |
Returns
Type | Description |
---|---|
EVRInputError |
GetActionHandle(String, ref UInt64)
Declaration
public EVRInputError GetActionHandle(string pchActionName, ref ulong pHandle)
Parameters
Type | Name | Description |
---|---|---|
String | pchActionName | |
UInt64 | pHandle |
Returns
Type | Description |
---|---|
EVRInputError |
GetActionOrigins(UInt64, UInt64, UInt64[])
Declaration
public EVRInputError GetActionOrigins(ulong actionSetHandle, ulong digitalActionHandle, ulong[] originsOut)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | actionSetHandle | |
UInt64 | digitalActionHandle | |
UInt64[] | originsOut |
Returns
Type | Description |
---|---|
EVRInputError |
GetActionSetHandle(String, ref UInt64)
Declaration
public EVRInputError GetActionSetHandle(string pchActionSetName, ref ulong pHandle)
Parameters
Type | Name | Description |
---|---|---|
String | pchActionSetName | |
UInt64 | pHandle |
Returns
Type | Description |
---|---|
EVRInputError |
GetAnalogActionData(UInt64, ref InputAnalogActionData_t, UInt32, UInt64)
Declaration
public EVRInputError GetAnalogActionData(ulong action, ref InputAnalogActionData_t pActionData, uint unActionDataSize, ulong ulRestrictToDevice)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
InputAnalogActionData_t | pActionData | |
UInt32 | unActionDataSize | |
UInt64 | ulRestrictToDevice |
Returns
Type | Description |
---|---|
EVRInputError |
GetBoneCount(UInt64, ref UInt32)
Declaration
public EVRInputError GetBoneCount(ulong action, ref uint pBoneCount)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
UInt32 | pBoneCount |
Returns
Type | Description |
---|---|
EVRInputError |
GetBoneHierarchy(UInt64, Int32[])
Declaration
public EVRInputError GetBoneHierarchy(ulong action, int[] pParentIndices)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
Int32[] | pParentIndices |
Returns
Type | Description |
---|---|
EVRInputError |
GetBoneName(UInt64, Int32, StringBuilder, UInt32)
Declaration
public EVRInputError GetBoneName(ulong action, int nBoneIndex, StringBuilder pchBoneName, uint unNameBufferSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
Int32 | nBoneIndex | |
StringBuilder | pchBoneName | |
UInt32 | unNameBufferSize |
Returns
Type | Description |
---|---|
EVRInputError |
GetDigitalActionData(UInt64, ref InputDigitalActionData_t, UInt32, UInt64)
Declaration
public EVRInputError GetDigitalActionData(ulong action, ref InputDigitalActionData_t pActionData, uint unActionDataSize, ulong ulRestrictToDevice)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
InputDigitalActionData_t | pActionData | |
UInt32 | unActionDataSize | |
UInt64 | ulRestrictToDevice |
Returns
Type | Description |
---|---|
EVRInputError |
GetInputSourceHandle(String, ref UInt64)
Declaration
public EVRInputError GetInputSourceHandle(string pchInputSourcePath, ref ulong pHandle)
Parameters
Type | Name | Description |
---|---|---|
String | pchInputSourcePath | |
UInt64 | pHandle |
Returns
Type | Description |
---|---|
EVRInputError |
GetOriginLocalizedName(UInt64, StringBuilder, UInt32, Int32)
Declaration
public EVRInputError GetOriginLocalizedName(ulong origin, StringBuilder pchNameArray, uint unNameArraySize, int unStringSectionsToInclude)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | origin | |
StringBuilder | pchNameArray | |
UInt32 | unNameArraySize | |
Int32 | unStringSectionsToInclude |
Returns
Type | Description |
---|---|
EVRInputError |
GetOriginTrackedDeviceInfo(UInt64, ref InputOriginInfo_t, UInt32)
Declaration
public EVRInputError GetOriginTrackedDeviceInfo(ulong origin, ref InputOriginInfo_t pOriginInfo, uint unOriginInfoSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | origin | |
InputOriginInfo_t | pOriginInfo | |
UInt32 | unOriginInfoSize |
Returns
Type | Description |
---|---|
EVRInputError |
GetPoseActionData(UInt64, ETrackingUniverseOrigin, Single, ref InputPoseActionData_t, UInt32, UInt64)
Declaration
public EVRInputError GetPoseActionData(ulong action, ETrackingUniverseOrigin eOrigin, float fPredictedSecondsFromNow, ref InputPoseActionData_t pActionData, uint unActionDataSize, ulong ulRestrictToDevice)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
ETrackingUniverseOrigin | eOrigin | |
Single | fPredictedSecondsFromNow | |
InputPoseActionData_t | pActionData | |
UInt32 | unActionDataSize | |
UInt64 | ulRestrictToDevice |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalActionData(UInt64, ref InputSkeletalActionData_t, UInt32)
Declaration
public EVRInputError GetSkeletalActionData(ulong action, ref InputSkeletalActionData_t pActionData, uint unActionDataSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
InputSkeletalActionData_t | pActionData | |
UInt32 | unActionDataSize |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalBoneData(UInt64, EVRSkeletalTransformSpace, EVRSkeletalMotionRange, VRBoneTransform_t[])
Declaration
public EVRInputError GetSkeletalBoneData(ulong action, EVRSkeletalTransformSpace eTransformSpace, EVRSkeletalMotionRange eMotionRange, VRBoneTransform_t[] pTransformArray)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
EVRSkeletalTransformSpace | eTransformSpace | |
EVRSkeletalMotionRange | eMotionRange | |
VRBoneTransform_t[] | pTransformArray |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalBoneDataCompressed(UInt64, EVRSkeletalMotionRange, IntPtr, UInt32, ref UInt32)
Declaration
public EVRInputError GetSkeletalBoneDataCompressed(ulong action, EVRSkeletalMotionRange eMotionRange, IntPtr pvCompressedData, uint unCompressedSize, ref uint punRequiredCompressedSize)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
EVRSkeletalMotionRange | eMotionRange | |
IntPtr | pvCompressedData | |
UInt32 | unCompressedSize | |
UInt32 | punRequiredCompressedSize |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalReferenceTransforms(UInt64, EVRSkeletalTransformSpace, EVRSkeletalReferencePose, VRBoneTransform_t[])
Declaration
public EVRInputError GetSkeletalReferenceTransforms(ulong action, EVRSkeletalTransformSpace eTransformSpace, EVRSkeletalReferencePose eReferencePose, VRBoneTransform_t[] pTransformArray)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
EVRSkeletalTransformSpace | eTransformSpace | |
EVRSkeletalReferencePose | eReferencePose | |
VRBoneTransform_t[] | pTransformArray |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalSummaryData(UInt64, ref VRSkeletalSummaryData_t)
Declaration
public EVRInputError GetSkeletalSummaryData(ulong action, ref VRSkeletalSummaryData_t pSkeletalSummaryData)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
VRSkeletalSummaryData_t | pSkeletalSummaryData |
Returns
Type | Description |
---|---|
EVRInputError |
GetSkeletalTrackingLevel(UInt64, ref EVRSkeletalTrackingLevel)
Declaration
public EVRInputError GetSkeletalTrackingLevel(ulong action, ref EVRSkeletalTrackingLevel pSkeletalTrackingLevel)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
EVRSkeletalTrackingLevel | pSkeletalTrackingLevel |
Returns
Type | Description |
---|---|
EVRInputError |
SetActionManifestPath(String)
Declaration
public EVRInputError SetActionManifestPath(string pchActionManifestPath)
Parameters
Type | Name | Description |
---|---|---|
String | pchActionManifestPath |
Returns
Type | Description |
---|---|
EVRInputError |
ShowActionOrigins(UInt64, UInt64)
Declaration
public EVRInputError ShowActionOrigins(ulong actionSetHandle, ulong ulActionHandle)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | actionSetHandle | |
UInt64 | ulActionHandle |
Returns
Type | Description |
---|---|
EVRInputError |
ShowBindingsForActionSet(VRActiveActionSet_t[], UInt32, UInt64)
Declaration
public EVRInputError ShowBindingsForActionSet(VRActiveActionSet_t[] pSets, uint unSizeOfVRSelectedActionSet_t, ulong originToHighlight)
Parameters
Type | Name | Description |
---|---|---|
VRActiveActionSet_t[] | pSets | |
UInt32 | unSizeOfVRSelectedActionSet_t | |
UInt64 | originToHighlight |
Returns
Type | Description |
---|---|
EVRInputError |
TriggerHapticVibrationAction(UInt64, Single, Single, Single, Single, UInt64)
Declaration
public EVRInputError TriggerHapticVibrationAction(ulong action, float fStartSecondsFromNow, float fDurationSeconds, float fFrequency, float fAmplitude, ulong ulRestrictToDevice)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | action | |
Single | fStartSecondsFromNow | |
Single | fDurationSeconds | |
Single | fFrequency | |
Single | fAmplitude | |
UInt64 | ulRestrictToDevice |
Returns
Type | Description |
---|---|
EVRInputError |
UpdateActionState(VRActiveActionSet_t[], UInt32)
Declaration
public EVRInputError UpdateActionState(VRActiveActionSet_t[] pSets, uint unSizeOfVRSelectedActionSet_t)
Parameters
Type | Name | Description |
---|---|---|
VRActiveActionSet_t[] | pSets | |
UInt32 | unSizeOfVRSelectedActionSet_t |
Returns
Type | Description |
---|---|
EVRInputError |