InjectedInputPenInfo Class
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.
Represents programmatically generated pen input.
public ref class InjectedInputPenInfo sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
class InjectedInputPenInfo final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public sealed class InjectedInputPenInfo
function InjectedInputPenInfo()
Public NotInheritable Class InjectedInputPenInfo
- Inheritance
- 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" />
Constructors
InjectedInputPenInfo() |
Creates a new InjectedInputPenInfo object that is used to specify the pen input to inject. |
Properties
PenButtons |
Gets or sets the pen button options. |
PenParameters |
Gets or sets the pen states used to simulate pen input. |
PointerInfo |
Gets or sets basic pointer info common to pen input. |
Pressure |
Gets or sets the force exerted by the pointer device on the surface of the digitizer. |
Rotation |
Gets or sets the clockwise rotation, or twist, of the pointer. |
TiltX |
Gets or sets the angle of tilt of the pointer along the x-axis. |
TiltY |
Gets or sets the angle of tilt of the pointer along the y-axis. |