Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 2.67 KB

injectedinputpointerinfo.md

File metadata and controls

60 lines (37 loc) · 2.67 KB
-api-id -api-type
T:Windows.UI.Input.Preview.Injection.InjectedInputPointerInfo
winrt struct

InjectedInputPointerInfo

-description

Contains basic pointer information common to all pointer types.

-struct-fields

-field 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.

-field PointerOptions

The various options, or modifiers, used to simulate pointer input through InjectedInputMouseInfo, InjectedInputPenInfo, and InjectedInputTouchInfo.

-field PixelLocation

The screen coordinates of the pointer in device-independent pixel (DIP).

-field TimeOffsetInMilliseconds

The baseline, or reference value, in milliseconds, for timed input events such as a double click/tap.

-field PerformanceCount

A high resolution (less than one microsecond) time stamp used for time-interval measurements.

-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

InjectedInputPenInfo.PointerInfo, InjectedInputTouchInfo.PointerInfo, Simulate user input through input injection