Class VRPNAxes
The axes class of VRPN.
VRPN 軸群類別。
Inherited Members
Namespace: Votanic.vIO.VRPN
Assembly: Votanic.vIO.dll
Syntax
[Serializable]
public class VRPNAxes : Axes
Constructors
VRPNAxes(String, String, Int32, Int32, Single, Single, Single)
Declare a VRPN axes.
宣告一個 VRPN 軸群。
Declaration
public VRPNAxes(string name, string address, int channel, int numberOfAxis, float deadZone = 0.14F, float pressDetect = 0.7F, float holdingDuration = 1F)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of axes |
System.String | address | Address of axes |
System.Int32 | channel | Channel of axes |
System.Int32 | numberOfAxis | Number of axis in axes |
System.Single | deadZone | Dead zone of axes |
System.Single | pressDetect | Press detect value of axes |
System.Single | holdingDuration | Holding seconds of hold input type |
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 |
AssistButtons | assistButtons | Assist buttons |
Returns
Type | Description |
---|---|
System.Single |