Show / Hide Table of Contents

Class VInputKeyboard

The keyboard class of VInput.
VInput 鍵盤類別。

Inheritance
System.Object
Element
Device
Buttons
VInputKeyboard
Inherited Members
Buttons.numberOfButton
Buttons.SetHoldingDuration(Single, Boolean)
Buttons.SetHoldingDuration(Int32, Single)
Buttons.ButtonDown(Int32, Boolean)
Buttons.ButtonUp(Int32, Boolean)
Buttons.ButtonHold(Int32, Boolean)
Buttons.ButtonTouch(Int32, Boolean)
Device.address
Device.channel
Device.index
Device.holdingDuration
Device.ButtonIndex(String, String)
Device.AxisIndex(String, String)
Device.KeyboardIndex(String)
Element.name
Element.Equals(String, Boolean)
Element.Contains(String, Boolean, Boolean)
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
當 true 時反轉結果

Returns
Type Description
System.Boolean
Overrides
Buttons.ButtonPress(Int32, Boolean)

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
目標秒數

In This Article
Back to top Generated by DocFX