InjectedInputPenParameters InjectedInputPenParameters InjectedInputPenParameters InjectedInputPenParameters Enum

Definition

Specifies the pen states 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 InjectedInputPenParameterspublic enum InjectedInputPenParametersPublic Enum InjectedInputPenParameters// 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

None None None None

No pen state reported. Default.

Pressure Pressure Pressure Pressure

The pen contact pressure on the digitizer surface, normalized to a range between 0 and 1024. The default is 0 if the device does not report pressure.

Rotation Rotation Rotation Rotation

The clockwise rotation, or twist, of the pointer normalized in a range of 0 to 359. The default is 0.

TiltX TiltX TiltX TiltX

The angle of tilt of the pointer along the x-axis in a range of -90 to +90, with a positive value indicating a tilt to the right. The default is 0.

TiltY TiltY TiltY TiltY

The angle of tilt of the pointer along the y-axis in a range of -90 to +90, with a positive value indicating a tilt toward the user. The default is 0.

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" />