Show / Hide Table of Contents

Class VInputAxes

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

Inheritance
System.Object
Element
Device
Axes
VInputAxes
Inherited Members
Axes.numberOfAxis
Axes.deadZone
Axes.pressDetect
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.VInput
Assembly: Votanic.vIO.dll
Syntax
public class VInputAxes : Axes

Methods

AxisDown(Int32, AxisDirection, Boolean, AssistButtons)

Return true if the axis is pressed (Absolute axis value >= Press detect value).
當軸按下時傳回 true(軸絕對值 >= 按下偵測值)。

AxisDown(0)

Declaration
public override bool AxisDown(int index, AxisDirection direction = AxisDirection.Any, bool reversed = false, AssistButtons assistButtons = null)
Parameters
Type Name Description
System.Int32 index

Axis index
軸編號

AxisDirection direction

The axis pressing direction
軸按住的方向

System.Boolean reversed

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

AssistButtons assistButtons

Assist buttons
輔助按鈕

Returns
Type Description
System.Boolean
Overrides
Axes.AxisDown(Int32, AxisDirection, Boolean, AssistButtons)

AxisHold(Int32, AxisDirection, Boolean, AssistButtons)

Return true if the axis is held for a while (Absolute axis value >= Press detect value).
當軸長按一段時間時傳回 true(軸絕對值 >= 按下偵測值)。

AxisHold(0)

Declaration
public override bool AxisHold(int index, AxisDirection direction = AxisDirection.Any, bool reversed = false, AssistButtons assistButtons = null)
Parameters
Type Name Description
System.Int32 index

Axis index
軸編號

AxisDirection direction

The axis pressing direction
軸按住的方向

System.Boolean reversed

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

AssistButtons assistButtons

Assist buttons
輔助按鈕

Returns
Type Description
System.Boolean
Overrides
Axes.AxisHold(Int32, AxisDirection, Boolean, AssistButtons)

AxisPress(Int32, AxisDirection, Boolean, AssistButtons)

Return true if the axis is pressing (Absolute axis value >= Press detect value).
當軸按住時傳回 true(軸絕對值 >= 按下偵測值)。

AxisPress(0)

Declaration
public override bool AxisPress(int index, AxisDirection direction = AxisDirection.Any, bool reversed = false, AssistButtons assistButtons = null)
Parameters
Type Name Description
System.Int32 index

Axis index
軸編號

AxisDirection direction

The axis pressing direction
軸按住的方向

System.Boolean reversed

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

AssistButtons assistButtons

Assist buttons
輔助按鈕

Returns
Type Description
System.Boolean
Overrides
Axes.AxisPress(Int32, AxisDirection, Boolean, AssistButtons)

AxisUp(Int32, AxisDirection, Boolean, AssistButtons)

Return true if the axis is released (Absolute release value >= Press detect value).
當軸放開時傳回 true(釋放絕對值 >= 按下偵測值)。

AxisUp(0)

Declaration
public override bool AxisUp(int index, AxisDirection direction = AxisDirection.Any, bool reversed = false, AssistButtons assistButtons = null)
Parameters
Type Name Description
System.Int32 index

Axis index
軸編號

AxisDirection direction

The axis pressing direction
軸按住的方向

System.Boolean reversed

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

AssistButtons assistButtons

Assist buttons
輔助按鈕

Returns
Type Description
System.Boolean
Overrides
Axes.AxisUp(Int32, AxisDirection, Boolean, AssistButtons)

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)

ReleaseValue(Int32, Boolean)

Return the stored maximum value of an axis after released.
傳回一個軸釋放後儲存的最大值。

ReleaseValue(0)

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

Axis index
軸編號

System.Boolean reversed

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

Returns
Type Description
System.Single
Overrides
Axes.ReleaseValue(Int32, Boolean)

SetDeadZone(Int32, Single)

Set the dead zone to an axis.
設定一個軸的死區。

SetDeadZone(0, 0.14f)

Declaration
public override void SetDeadZone(int index, float deadZone = 0.14F)
Parameters
Type Name Description
System.Int32 index

Target index
目標編號

System.Single deadZone

Target dead zone
目標死區

Overrides
Axes.SetDeadZone(Int32, Single)

SetDeadZone(Single, Boolean)

Set the dead zone of axes.
設定軸群的死區。

SetDeadZone(0.14f, true)

Declaration
public override void SetDeadZone(float deadZone = 0.14F, bool setToAll = false)
Parameters
Type Name Description
System.Single deadZone

Target deadzone
目標死區

System.Boolean setToAll

Set to all input indices if true, else only set to the index using global value
當 true 時設定到所有輸入編號,否則只設定到使用公用值的編號

Overrides
Axes.SetDeadZone(Single, Boolean)

SetHoldingDuration(Int32, Single)

Set the holding type target seconds of an axis.
設定一個軸的長按時間。

SetHoldingDuration(0, 1)

Declaration
public override void SetHoldingDuration(int index, float holdingDuration = 1F)
Parameters
Type Name Description
System.Int32 index

Target index
目標編號

System.Single holdingDuration

Target seconds
目標秒數

Overrides
Axes.SetHoldingDuration(Int32, Single)

SetHoldingDuration(Single, Boolean)

Set the holding type target seconds of axes.
設定軸群長按輸入類型所需的目標秒數。

SetHoldingDuration(1, true)

Declaration
public override void SetHoldingDuration(float holdingDuration = 1F, bool setToAll = false)
Parameters
Type Name Description
System.Single holdingDuration

Target seconds
目標秒數

System.Boolean setToAll

Set to all input indices if true, else only set to the index using global value
當 true 時設定到所有輸入編號,否則只設定到使用共用值的編號

Overrides
Axes.SetHoldingDuration(Single, Boolean)

SetPressDetect(Int32, Single)

Set the press detect value to an axis.
設定一個軸的按下偵測值。

SetPressDetect(0, 0.7f)

Declaration
public override void SetPressDetect(int index, float pressDetect = 0.14F)
Parameters
Type Name Description
System.Int32 index

Target index
目標編號

System.Single pressDetect

Target press detect value
目標按下偵測值

Overrides
Axes.SetPressDetect(Int32, Single)

SetPressDetect(Single, Boolean)

Set the press detect value of axes.
設定軸群的按下偵測值。

SetPressDetect(0.7f, true)

Declaration
public override void SetPressDetect(float pressDetect = 0.7F, bool setToAll = false)
Parameters
Type Name Description
System.Single pressDetect

Target press detect value
目標按下偵測值

System.Boolean setToAll

Set to all input indices if true, else only set to the index using global value
當 true 時設定到所有輸入編號,否則只設定到使用共用值的編號

Overrides
Axes.SetPressDetect(Single, Boolean)
In This Article
Back to top Generated by DocFX