InjectedInputTouchInfo InjectedInputTouchInfo InjectedInputTouchInfo InjectedInputTouchInfo Class

Definition

Represents programmatically generated touch input.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : sealed class InjectedInputTouchInfo : IInjectedInputTouchInfopublic sealed class InjectedInputTouchInfo : IInjectedInputTouchInfoPublic NotInheritable Class InjectedInputTouchInfo Implements IInjectedInputTouchInfo// 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

InjectedInputTouchInfo() InjectedInputTouchInfo() InjectedInputTouchInfo() InjectedInputTouchInfo()

Creates a new InjectedInputTouchInfo object that is used to specify the touch input to inject.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputTouchInfo()public InjectedInputTouchInfo()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

Contact Contact Contact Contact

Gets or sets the screen coordinates of the bounding box that represents the touch contact area.

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

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

The screen coordinates of the contact area in device-independent pixel (DIP). The default is a 0-by-0 rectangle, centered around the pointer PixelLocation.

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

Orientation Orientation Orientation Orientation

Gets or sets the counter-clockwise angle of rotation around the major axis of the pointer device (the z-axis, perpendicular to the surface of the digitizer).

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

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

The pointer orientation, with a value between 0 and 359, where 0 indicates a touch pointer aligned with the x-axis and pointing from left to right; increasing values indicate degrees of rotation in the counter-clockwise direction. 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" />

PointerInfo PointerInfo PointerInfo PointerInfo

Gets or sets basic pointer info common to touch 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 touch 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" />

TouchParameters TouchParameters TouchParameters TouchParameters

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

Note

The APIs in this namespace require the inputInjectionBrokered restricted capability.

public : InjectedInputTouchParameters TouchParameters { get; set; }public InjectedInputTouchParameters TouchParameters { get; set; }Public ReadWrite Property TouchParameters As InjectedInputTouchParameters// 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" />