InjectedInputMouseOptions 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 various options, or modifiers, used to simulate mouse input through InjectedInputMouseInfo.
This enumeration supports a bitwise combination of its member values.
public enum class InjectedInputMouseOptions
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
enum class InjectedInputMouseOptions
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public enum InjectedInputMouseOptions
var value = Windows.UI.Input.Preview.Injection.InjectedInputMouseOptions.none
Public Enum InjectedInputMouseOptions
- Inheritance
-
InjectedInputMouseOptions
- 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 mouse modifier. Default. |
Move | 1 | Move (coalesce move messages). If a mouse event occurs and the application has not yet processed the previous mouse event, the previous one is thrown away. See MoveNoCoalesce. |
LeftDown | 2 | Left mouse button pressed. |
LeftUp | 4 | Left mouse button released. |
RightDown | 8 | Right mouse button pressed. |
RightUp | 16 | Right mouse button released. |
MiddleDown | 32 | Middle mouse button pressed. |
MiddleUp | 64 | Middle mouse button released. |
XDown | 128 | XBUTTON pressed. |
XUp | 256 | XBUTTON released. |
Wheel | 2048 | Mouse wheel. |
HWheel | 4096 | Mouse tilt wheel. |
MoveNoCoalesce | 8192 | Move (do not coalesce move messages). The application processes all mouse events since the previously processed mouse event. See Move. |
VirtualDesk | 16384 | Map coordinates to the entire virtual desktop. |
Absolute | 32768 | Normalized absolute coordinates between 0 and 65,535. If the flag is not set, relative data (the change in position since the last reported position) is used. Coordinate (0,0) maps onto the upper-left corner of the display surface; coordinate (65535,65535) maps onto the lower-right corner. In a multi-monitor system, the coordinates map to the primary monitor. |
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" />