Class VInputMouse
The mouse class of VInput.
VInput 滑鼠類別。
Inherited Members
Namespace: Votanic.vIO.VInput
Assembly: Votanic.vIO.dll
Syntax
public class VInputMouse : Buttons
Methods
AxisValue(Int32, Boolean)
Return the value of mouse axis.
傳回滑鼠軸的值。
AxisValue(0)
Declaration
public float AxisValue(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 |
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 |