Show / Hide Table of Contents

Class OpenVRAxes

The axes class of OpenVR.
OpenVR 軸群類別。

Inheritance
System.Object
Element
Device
Axes
OpenVRAxes
Inherited Members
Axes.numberOfAxis
Axes.deadZone
Axes.pressDetect
Axes.SetDeadZone(Single, Boolean)
Axes.SetDeadZone(Int32, Single)
Axes.SetPressDetect(Single, Boolean)
Axes.SetPressDetect(Int32, Single)
Axes.SetHoldingDuration(Single, Boolean)
Axes.SetHoldingDuration(Int32, Single)
Axes.ReleaseValue(Int32, Boolean)
Axes.AxisPress(Int32, AxisDirection, Boolean, AssistButtons)
Axes.AxisDown(Int32, AxisDirection, Boolean, AssistButtons)
Axes.AxisUp(Int32, AxisDirection, Boolean, AssistButtons)
Axes.AxisHold(Int32, AxisDirection, Boolean, AssistButtons)
Device.address
Device.channel
Device.index
Device.holdingDuration
Device.ButtonIndex(String, String)
Device.AxisIndex(String, String)
Device.KeyboardIndex(String)
Element.name
Element.Equals(String, Boolean)
Element.Contains(String, Boolean, Boolean)
Namespace: Votanic.vIO.OpenVR
Assembly: Votanic.vIO.dll
Syntax
public class OpenVRAxes : Axes

Methods

AxisValue(Int32, Boolean, AssistButtons)

Return the value of an axis.
傳回一個軸的值。

AxisValue(0)

Declaration
public override float AxisValue(int index, bool reversed = false, AssistButtons assistButtons = null)
Parameters
Type Name Description
System.Int32 index

Axis index
軸編號

System.Boolean reversed

Reverse axis value if true
當 true 時反轉軸值

AssistButtons assistButtons

Assist buttons
輔助按鈕

Returns
Type Description
System.Single
Overrides
Axes.AxisValue(Int32, Boolean, AssistButtons)
In This Article
Back to top Generated by DocFX