Interface IVRDevice
An interface representing a VR hardware device.
Namespace: Liminal.SDK.VR
Assembly: Liminal.SDK.dll
Syntax
public interface IVRDevice
  Properties
| Improve this Doc View SourceHeadset
Gets the IVRHeadset of the device.
Declaration
IVRHeadset Headset { get; }
  Property Value
| Type | Description | 
|---|---|
| IVRHeadset | 
InputDeviceCount
Gets the number of input devices currently connected.
Declaration
int InputDeviceCount { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
InputDevices
Gets an enumerable collection of IVRInputDevice objects currently connected.
Declaration
IEnumerable<IVRInputDevice> InputDevices { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<IVRInputDevice> | 
Name
Gets the name of the device.
Declaration
string Name { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
PrimaryInputDevice
Gets the primary input device, if connected and available.
Declaration
IVRInputDevice PrimaryInputDevice { get; }
  Property Value
| Type | Description | 
|---|---|
| IVRInputDevice | 
SecondaryInputDevice
Gets the secondary input device, if connected and available.
Declaration
IVRInputDevice SecondaryInputDevice { get; }
  Property Value
| Type | Description | 
|---|---|
| IVRInputDevice | 
Methods
| Improve this Doc View SourceHasCapabilities(VRDeviceCapability)
Indicates if the device has a specific set of capabilities. This method returns true only if ALL values within the capabilities bitmask are available on the device.
Declaration
bool HasCapabilities(VRDeviceCapability capabilities)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VRDeviceCapability | capabilities | The capabilities to check. This value is a bitmask of VRDeviceCapability values.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | A boolean indicating if the device has ALL the capabilities specified by the   | 
      
SetupAvatar(IVRAvatar)
[Internal use] Sets up an IVRAvatar instance for this device. You should not have to call this manually.
Declaration
void SetupAvatar(IVRAvatar avatar)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IVRAvatar | avatar | The IVRAvatar instance to bind to the device.  | 
      
Update()
[Internal use] Updates the state of the device. You do not have to call this manually.
Declaration
void Update()
  Events
| Improve this Doc View SourceInputDeviceConnected
Raised when a IVRInputDevice is connected.
Declaration
event VRInputDeviceEventHandler InputDeviceConnected
  Event Type
| Type | Description | 
|---|---|
| VRInputDeviceEventHandler | 
InputDeviceDisconnected
Raised when a IVRInputDevice is disconnected.
Declaration
event VRInputDeviceEventHandler InputDeviceDisconnected
  Event Type
| Type | Description | 
|---|---|
| VRInputDeviceEventHandler | 
PrimaryInputDeviceChanged
Raised when the primary IVRInputDevice has changed.
Declaration
event VRDeviceEventHandler PrimaryInputDeviceChanged
  Event Type
| Type | Description | 
|---|---|
| VRDeviceEventHandler |