Class OpenVRDevice
The device class of OpenVR which may contains Buttons, Axes and Tracker.
OpenVR 裝置類別,可包含按鈕群、軸群及定位器。
Inherited Members
Namespace: Votanic.vIO.OpenVR
Assembly: Votanic.vIO.dll
Syntax
public class OpenVRDevice : Device
Properties
axes
Axes of device.
裝置的軸群。
Declaration
public OpenVRAxes axes { get; }
Property Value
| Type | Description |
|---|---|
| OpenVRAxes |
buttons
Buttons of device.
裝置的按鈕群。
Declaration
public OpenVRButtons buttons { get; }
Property Value
| Type | Description |
|---|---|
| OpenVRButtons |
id
The device ID of OpenVR.
OpenVR 裝置識別編碼。
Declaration
public string id { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
model
The device model of OpenVR.
OpenVR 裝置模型。
Declaration
public OpenVRModel model { get; }
Property Value
| Type | Description |
|---|---|
| OpenVRModel |
role
Return the role of device.
傳回裝置角色。
Declaration
public ETrackedControllerRole role { get; }
Property Value
| Type | Description |
|---|---|
| Votanic.vIO.OpenVR.ETrackedControllerRole |
tracker
Tracker of device.
裝置的定位器。
Declaration
public OpenVRTracker tracker { get; }
Property Value
| Type | Description |
|---|---|
| OpenVRTracker |
type
The device type of OpenVR.
OpenVR 裝置類型。
Declaration
public ETrackedDeviceClass type { get; }
Property Value
| Type | Description |
|---|---|
| Votanic.vIO.OpenVR.ETrackedDeviceClass |
Methods
BindAddress(String)
Bind an address to OpenVR device.
為 OpenVR 裝置綁定位址。
BindAddress("Hand")
Declaration
public void BindAddress(string address)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | address | Address for finding device |
Vibrate(UInt16)
Vibrate the device.
使裝置震動。
Vibrate(1000)
Declaration
public void Vibrate(ushort duration = 500)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt16 | duration | Vibrate micro seconds |