InjectedInputTouchParameters Enum
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.
Specifies the touch states used to simulate touch input through InjectedInputTouchInfo.
This enumeration supports a bitwise combination of its member values.
public enum class InjectedInputTouchParameters
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class InjectedInputTouchParameters
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum InjectedInputTouchParameters
var value = Windows.UI.Input.Preview.Injection.InjectedInputTouchParameters.none
Public Enum InjectedInputTouchParameters
- Inheritance
-
InjectedInputTouchParameters
- Attributes
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|
Fields
Name | Value | Description |
---|---|---|
None | 0 | No touch state reported. Default. |
Contact | 1 | The screen coordinates of the bounding box that represents the touch contact area. |
Orientation | 2 | The counter-clockwise angle of rotation around the major axis of the pointer device (the z-axis, perpendicular to the surface of the digitizer). |
Pressure | 4 | The force exerted by the pointer device on the surface of the digitizer. |
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" />