Class IVRDeviceExtensions
Extension methods for the IVRDevice interface.
Inheritance
System.Object
IVRDeviceExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Liminal.SDK.VR
Assembly: Liminal.SDK.dll
Syntax
public static class IVRDeviceExtensions
Methods
| Improve this Doc View SourceGetInputDevice(IVRDevice, VRInputDeviceHand)
Gets the IVRInputDevice connected to a
Declaration
public static IVRInputDevice GetInputDevice(this IVRDevice device, VRInputDeviceHand hand)
Parameters
| Type | Name | Description |
|---|---|---|
| IVRDevice | device | The IVRDevice. |
| VRInputDeviceHand | hand | The hand of the input device to retrieve. |
Returns
| Type | Description |
|---|---|
| IVRInputDevice | The IVRInputDevice assigned to the specified hand. |
GetInputDevice(IVRDevice, Int32)
Gets the IVRInputDevice connected to a
Declaration
public static IVRInputDevice GetInputDevice(this IVRDevice device, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| IVRDevice | device | The IVRDevice. |
| System.Int32 | index | The index of the connected input device. |
Returns
| Type | Description |
|---|---|
| IVRInputDevice | The IVRInputDevice with the specified index. |