Class VInputKeyboard
The keyboard class of VInput.
VInput 鍵盤類別。
Inherited Members
Namespace: Votanic.vIO.VInput
Assembly: Votanic.vIO.dll
Syntax
public class VInputKeyboard : 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
SetHoldingDuration(KeyCode, Single)
Set the holding type target seconds of a button.
設定一個按鈕的長按時間。
SetHoldingDuration(KeyCode.Space, 1)
Declaration
public void SetHoldingDuration(KeyCode keyCode, float holdingDuration = 1F)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.KeyCode | keyCode | Target keycode |
System.Single | holdingDuration | Target seconds |