InjectedInputPenButtons InjectedInputPenButtons InjectedInputPenButtons InjectedInputPenButtons Enum

Definition

Specifies the pen options used to simulate pen input through InjectedInputPenInfo.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.

public : enum class InjectedInputPenButtonspublic enum InjectedInputPenButtonsPublic Enum InjectedInputPenButtons// You can use this enum in JavaScript.
Attributes
System.FlagsAttribute ContractVersionAttribute
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Fields

Barrel Barrel Barrel Barrel

The barrel button is pressed.

Eraser Eraser Eraser Eraser

The eraser button is pressed.

Inverted Inverted Inverted Inverted

The pen is inverted.

None None None None

No pen buttons are pressed. Default.

Remarks

Using input injection requires the following be added to the Package.appxmanifest:

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