Class OpenVRButtons
The buttons class of OpenVR.
OpenVR 按鈕群類別。
Inherited Members
Namespace: Votanic.vIO.OpenVR
Assembly: Votanic.vIO.dll
Syntax
public class OpenVRButtons : Buttons
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 |
Overrides
ButtonTouch(Int32, Boolean)
Return true if the button is touched.
當按鈕被觸碰時傳回 true。
ButtonTouch(0)
Declaration
public override bool ButtonTouch(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 |