InjectedInputPenInfo InjectedInputPenInfo InjectedInputPenInfo InjectedInputPenInfo Class

Definition

Represents programmatically generated pen input.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : sealed class InjectedInputPenInfo : IInjectedInputPenInfopublic sealed class InjectedInputPenInfo : IInjectedInputPenInfoPublic NotInheritable Class InjectedInputPenInfo Implements IInjectedInputPenInfo// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

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

Constructors

InjectedInputPenInfo() InjectedInputPenInfo() InjectedInputPenInfo() InjectedInputPenInfo()

Creates a new InjectedInputPenInfo object that is used to specify the pen input to inject.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputPenInfo()public InjectedInputPenInfo()Public Sub New()// You can use this method in JavaScript.

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

Properties

PenButtons PenButtons PenButtons PenButtons

Gets or sets the pen button options.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputPenButtons PenButtons { get; set; }public InjectedInputPenButtons PenButtons { get; set; }Public ReadWrite Property PenButtons As InjectedInputPenButtons// You can use this property in JavaScript.

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

PenParameters PenParameters PenParameters PenParameters

Gets or sets the pen states used to simulate pen input.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputPenParameters PenParameters { get; set; }public InjectedInputPenParameters PenParameters { get; set; }Public ReadWrite Property PenParameters As InjectedInputPenParameters// You can use this property in JavaScript.

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

PointerInfo PointerInfo PointerInfo PointerInfo

Gets or sets basic pointer info common to pen input.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputPointerInfo PointerInfo { get; set; }public InjectedInputPointerInfo PointerInfo { get; set; }Public ReadWrite Property PointerInfo As InjectedInputPointerInfo// You can use this property in JavaScript.

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

Pressure Pressure Pressure Pressure

Gets or sets the force exerted by the pointer device on the surface of the digitizer.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double Pressure { get; set; }public double Pressure { get; set; }Public ReadWrite Property Pressure As double// You can use this property in JavaScript.
Value
double double double double

The pen contact force exerted on the digitizer surface, normalized to a range between 0 and 1024. 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" />

Rotation Rotation Rotation Rotation

Gets or sets the clockwise rotation, or twist, of the pointer.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : double Rotation { get; set; }public double Rotation { get; set; }Public ReadWrite Property Rotation As double// You can use this property in JavaScript.
Value
double double double double

The clockwise rotation, or twist, of the pointer normalized to a range between 0 and 359. 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" />

TiltX TiltX TiltX TiltX

Gets or sets the angle of tilt of the pointer along the x-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : int TiltX { get; set; }public int TiltX { get; set; }Public ReadWrite Property TiltX As int// You can use this property in JavaScript.
Value
int int int int

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.

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

TiltY TiltY TiltY TiltY

Gets or sets the angle of tilt of the pointer along the y-axis.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : int TiltY { get; set; }public int TiltY { get; set; }Public ReadWrite Property TiltY As int// You can use this property in JavaScript.
Value
int int int int

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