InjectedInputPointerInfo Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains basic pointer information common to all pointer types.
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
struct InjectedInputPointerInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public struct InjectedInputPointerInfo
var injectedInputPointerInfo = {
pointerId : /* Your value */,
pointerOptions : /* Your value */,
pixelLocation : /* Your value */,
timeOffsetInMilliseconds : /* Your value */,
performanceCount : /* Your value */
}
Public Structure InjectedInputPointerInfo
- Inheritance
-
InjectedInputPointerInfo
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Examples
Here are some downloadable samples demonstrating basic input and input injection:
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" />
Fields
PerformanceCount |
A high resolution (less than one microsecond) time stamp used for time-interval measurements. |
PixelLocation |
The screen coordinates of the pointer in device-independent pixel (DIP). |
PointerId |
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. |
PointerOptions |
The various options, or modifiers, used to simulate pointer input through InjectedInputMouseInfo, InjectedInputPenInfo, and InjectedInputTouchInfo. |
TimeOffsetInMilliseconds |
The baseline, or reference value, in milliseconds, for timed input events such as a double click/tap. |