-api-id | -api-type |
---|---|
T:Windows.UI.Input.Preview.Injection.InjectedInputPointerInfo |
winrt struct |
Contains basic pointer information common to all pointer types.
A unique identifier for the lifetime of the pointer. A pointer is created when it enters detection range and destroyed when it leaves detection range. If a pointer goes out of detection range and then returns, it is treated as a new pointer and might be assigned a new identifier.
The various options, or modifiers, used to simulate pointer input through InjectedInputMouseInfo, InjectedInputPenInfo, and InjectedInputTouchInfo.
The screen coordinates of the pointer in device-independent pixel (DIP).
The baseline, or reference value, in milliseconds, for timed input events such as a double click/tap.
A high resolution (less than one microsecond) time stamp used for time-interval measurements.
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:
InjectedInputPenInfo.PointerInfo, InjectedInputTouchInfo.PointerInfo, Simulate user input through input injection