Show / Hide Table of Contents

Class VInputButtons

The buttons class of VInput.
VInput 按鈕群類別。

Inheritance
System.Object
Element
Device
Buttons
VInputButtons
Inherited Members
Buttons.numberOfButton
Buttons.ButtonTouch(Int32, Boolean)
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 VInputButtons : Buttons

Methods

ButtonDown(Int32, Boolean)

Return true if the button is pressed.
當按鈕按下時傳回 true。

ButtonDown(0)

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

Button index
按鈕編號

System.Boolean reversed

Reverse the result if true
當 true 時反轉結果

Returns
Type Description
System.Boolean
Overrides
Buttons.ButtonDown(Int32, Boolean)

ButtonHold(Int32, Boolean)

Return true if the button is held for a while.
當按鈕長按一段時間時傳回 true。

ButtonHold(0)

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

Button index
按鈕編號

System.Boolean reversed

Reverse the result if true
當 true 時反轉結果

Returns
Type Description
System.Boolean
Overrides
Buttons.ButtonHold(Int32, Boolean)

ButtonPress(Int32, Boolean)

Return true if the button is pressing.
當按鈕按住時傳回 true。

ButtonPress(0)

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

Button index
按鈕編號

System.Boolean reversed

Reverse the result if true
當 true 時反轉結果

Returns
Type Description
System.Boolean
Overrides
Buttons.ButtonPress(Int32, Boolean)

ButtonUp(Int32, Boolean)

Return true if the button is released.
當按鈕放開時傳回 true。

ButtonUp(0)

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

Button index
按鈕編號

System.Boolean reversed

Reverse the result if true
當 true 時反轉結果

Returns
Type Description
System.Boolean
Overrides
Buttons.ButtonUp(Int32, Boolean)

SetHoldingDuration(Int32, Single)

Set the holding type target seconds of a button.
設定一個按鈕的長按時間。

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
Buttons.SetHoldingDuration(Int32, Single)

SetHoldingDuration(Single, Boolean)

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

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
Buttons.SetHoldingDuration(Single, Boolean)
In This Article
Back to top Generated by DocFX