Class VRPNButtons
The buttons class of VRPN.
VRPN 按鈕群類別。
Inherited Members
Namespace: Votanic.vIO.VRPN
Assembly: Votanic.vIO.dll
Syntax
[Serializable]
public class VRPNButtons : Buttons
Constructors
VRPNButtons(String, String, Int32, Int32, Single)
Declare a VRPN buttons.
宣告一個 VRPN 按鈕群。
Declaration
public VRPNButtons(string name, string address, int channel, int numberOfButton, float holdingDuration = 1F)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of buttons |
System.String | address | Address of buttons |
System.Int32 | channel | Channel of buttons |
System.Int32 | numberOfButton | Number of button in buttons |
System.Single | holdingDuration | Holding seconds of hold input type |
Methods
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 |
Returns
Type | Description |
---|---|
System.Boolean |