InjectedInputPointerOptions
InjectedInputPointerOptions
InjectedInputPointerOptions
InjectedInputPointerOptions
Enum
Definition
Specifies the various options, or modifiers, used to simulate pointer input through InjectedInputMouseInfo, InjectedInputPenInfo, and InjectedInputTouchInfo.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.
public : enum class InjectedInputPointerOptionspublic enum InjectedInputPointerOptionsPublic Enum InjectedInputPointerOptions// You can use this enum in JavaScript.
- Attributes
-
System.FlagsAttribute ContractVersionAttribute
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Fields
| Canceled Canceled Canceled Canceled | Indicates that the pointer is departing in an abnormal manner, such as when the system receives invalid input for the pointer or when a device with active pointers departs abruptly. If the application receiving the input is in a position to do so, it should treat the interaction as not completed and reverse any effects of the pointer. |
| CaptureChanged CaptureChanged CaptureChanged CaptureChanged | Indicates that this pointer was captured by (associated with) another element and the original element has lost capture. |
| Confidence Confidence Confidence Confidence | Indicates a suggestion from the source device about whether the pointer represents an intended or accidental interaction, which is especially relevant for touch pointers where an accidental interaction (such as with the palm of the hand) can trigger input. The presence of this flag indicates that the source device has high confidence that this input is part of an intended interaction. |
| FirstButton FirstButton FirstButton FirstButton | Indicates a primary action. A touch pointer has this flag set when it is in contact with the digitizer surface. A pen pointer has this flag set when it is in contact with the digitizer surface with no buttons pressed. A mouse pointer has this flag set when the left mouse button is down. |
| InContact InContact InContact InContact | Indicates that the pointer is in contact with the digitizer surface or area. When this flag is not set, it indicates a hovering pointer. |
| InRange InRange InRange InRange | Indicates that the pointer continues to exist. When this flag is not set, it indicates the pointer has left detection range. |
| New New New New | Indicates the arrival of a new pointer. |
| None None None None | No pointer modifier. Default. |
| PointerDown PointerDown PointerDown PointerDown | Indicates that this pointer made contact with the digitizer surface. A touch pointer has this flag set when it is in contact with the digitizer surface. A pen pointer has this flag set when it is in contact with the digitizer surface. A mouse pointer has this flag set when a mouse button is pressed. |
| PointerUp PointerUp PointerUp PointerUp | Indicates that this pointer ended contact with the digitizer surface. A touch pointer has this flag set when it ends contact with the digitizer surface. A pen pointer has this flag set when it ends contact with the digitizer surface. A mouse pointer has this flag set when a mouse button is released. |
| Primary Primary Primary Primary | Indicates that the pointer can perform actions beyond those available to non-primary pointers. For example, when a primary pointer makes contact with a window’s surface, it might provide the window an opportunity to activate. The primary pointer is identified from all current user interactions on the system (mouse, touch, pen, and so on). As such, the primary pointer might not be associated with your app. The first contact in a multi-touch interaction is set as the primary pointer. Once a primary pointer is identified, all contacts must be lifted before a new contact can be identified as a primary pointer. For apps that don't process pointer input, only the primary pointer's events are promoted to mouse events. |
| SecondButton SecondButton SecondButton SecondButton | Indicates a secondary action. A touch pointer does not use this flag. A pen pointer has this flag set when it is in contact with the digitizer surface with the pen barrel button pressed. A mouse pointer has this flag set when the right mouse button is down. |
| Update Update Update Update | Indicates a simple update that does not include pointer state changes. |
Remarks
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" />