Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 2.04 KB

injectedinputrectangle.md

File metadata and controls

56 lines (35 loc) · 2.04 KB
-api-id -api-type
T:Windows.UI.Input.Preview.Injection.InjectedInputRectangle
winrt struct

InjectedInputRectangle

-description

The offsets, from the injected pointer, for the bounding box that represents the touch contact area.

-struct-fields

-field Left

The location of the left side of the rectangle, in device-independent pixel (DIP).

-field Top

The location of the top side of the rectangle, in device-independent pixel (DIP).

-field Bottom

The location of the bottom side of the rectangle, in device-independent pixel (DIP).

-field Right

The location of the left side of the rectangle, in device-independent pixel (DIP).

-remarks

Important

The APIs in this namespace require the inputInjectionBrokered restricted capability.

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

-examples

Here are some downloadable samples demonstrating basic input and input injection:

-see-also

Simulate user input through input injection