Show / Hide Table of Contents

Class Device

Input Output Device class.
輸入輸出裝置類別。

Inheritance
System.Object
Element
Device
Axes
Buttons
MobileInput
OpenVRDevice
Tracker
VInputController
Inherited Members
Element.name
Element.Equals(String, Boolean)
Element.Contains(String, Boolean, Boolean)
Namespace: Votanic.vIO
Assembly: Votanic.vIO.dll
Syntax
public abstract class Device : Element

Fields

address

Address of device.
裝置的位址。

Declaration
[Tooltip("Address of device.\n裝置的位址。")]
public string address
Field Value
Type Description
System.String

channel

Channel of device.
裝置的頻道。

Declaration
[Tooltip("Channel of device.\n裝置的頻道。")]
public int channel
Field Value
Type Description
System.Int32

holdingDuration

Global holding seconds of hold input type.
長按輸入類型的公用長按秒數。

Declaration
[Tooltip("Global holding seconds of hold input type.\n長按輸入類型的公用長按秒數。")]
public float holdingDuration
Field Value
Type Description
System.Single

Properties

index

Index of device.
裝置的編號。

Declaration
public int index { get; protected set; }
Property Value
Type Description
System.Int32

Methods

AxisIndex(String, String)

Return the axis index by axis name.
根據軸名稱傳回軸編號。

AxisIndex("XBox", "LT")

Declaration
public static int AxisIndex(string device, string axis)
Parameters
Type Name Description
System.String device

Device keyboard
裝置關鍵字

System.String axis

Axis name
軸名稱

Returns
Type Description
System.Int32

ButtonIndex(String, String)

Return the button index by button name.
根據按鈕名稱傳回按鈕編號。

ButtonIndex("XBox", "X")

Declaration
public static int ButtonIndex(string device, string button)
Parameters
Type Name Description
System.String device

Device keyboard
裝置關鍵字

System.String button

Button name
按鈕名稱

Returns
Type Description
System.Int32

KeyboardIndex(String)

Return the key index of keyboard by key name.
根據鍵盤的按鍵名稱傳回按鍵編號。

KeyboardIndex("RightAlt")

Declaration
public static int KeyboardIndex(string keyName)
Parameters
Type Name Description
System.String keyName

Key name
按鍵名稱

Returns
Type Description
System.Int32
In This Article
Back to top Generated by DocFX