共用方式為


KeyboardInput 類別

定義

啟用目前線程的鍵盤輸入處理。

public ref class KeyboardInput abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class KeyboardInput final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class KeyboardInput
Public Class KeyboardInput
繼承
Object Platform::Object IInspectable KeyboardInput
屬性

方法

GetKeyStateForCurrentThread(VirtualKey)

擷取虛擬金鑰的狀態。

適用於