-api-id | -api-type |
---|---|
T:Windows.UI.Input.Preview.Injection.InjectedInputRectangle |
winrt struct |
The offsets, from the injected pointer, for the bounding box that represents the touch contact area.
The location of the left side of the rectangle, in device-independent pixel (DIP).
The location of the top side of the rectangle, in device-independent pixel (DIP).
The location of the bottom side of the rectangle, in device-independent pixel (DIP).
The location of the left side of the rectangle, in device-independent pixel (DIP).
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" />
Here are some downloadable samples demonstrating basic input and input injection: