Class VInputAxes
The axes class of VInput.
VInput 軸群類別。
Inherited Members
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Single |
Overrides
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 |
Returns
Type | Description |
---|---|
System.Single |
Overrides
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
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
|
Overrides
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
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
|
Overrides
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
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
|