InjectedInputPenButtons 列挙型

定義

InjectedInputPenInfo を使用してペン入力をシミュレートするために使用するペン オプションを指定します。

この列挙体は、メンバー値のビットごとの組み合わせをサポートしています。

public enum class InjectedInputPenButtons
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class InjectedInputPenButtons
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum InjectedInputPenButtons
var value = Windows.UI.Input.Preview.Injection.InjectedInputPenButtons.none
Public Enum InjectedInputPenButtons
継承
InjectedInputPenButtons
属性

Windows の要件

デバイス ファミリ
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v3.0 で導入)

フィールド

Barrel 1

バレル ボタンが押されます。

Eraser 4

消しゴム ボタンが押されます。

Inverted 2

ペンは反転されます。

None 0

ペン ボタンは押されません。 既定値。

基本的な入力と入力の挿入を示すダウンロード可能なサンプルをいくつか次に示します。

注釈

重要

この名前空間の API には、inputInjectionBrokered 制限付き機能が必要です。

入力インジェクションを使用するには、Package.appxmanifest に以下を追加する必要があります。

  • 宛先 <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 宛先 <Capabilities>
    • <rescap:Capability Name="inputInjectionBrokered" />

適用対象

こちらもご覧ください