InjectedInputMouseOptions
InjectedInputMouseOptions
InjectedInputMouseOptions
InjectedInputMouseOptions
Enum
Definition
Specifies the various options, or modifiers, used to simulate mouse input through InjectedInputMouseInfo.
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 InjectedInputMouseOptionspublic enum InjectedInputMouseOptionsPublic Enum InjectedInputMouseOptions// 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
| Absolute Absolute Absolute Absolute | 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. |
| HWheel HWheel HWheel HWheel | Mouse tilt wheel. |
| LeftDown LeftDown LeftDown LeftDown | Left mouse button pressed. |
| LeftUp LeftUp LeftUp LeftUp | Left mouse button released. |
| MiddleDown MiddleDown MiddleDown MiddleDown | Middle mouse button pressed. |
| MiddleUp MiddleUp MiddleUp MiddleUp | Middle mouse button released. |
| Move Move Move Move | 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. |
| MoveNoCoalesce MoveNoCoalesce MoveNoCoalesce MoveNoCoalesce | Move (do not coalesce move messages). The application processes all mouse events since the previously processed mouse event. See Move. |
| None None None None | No mouse modifier. Default. |
| RightDown RightDown RightDown RightDown | Right mouse button pressed. |
| RightUp RightUp RightUp RightUp | Right mouse button released. |
| VirtualDesk VirtualDesk VirtualDesk VirtualDesk | Map coordinates to the entire virtual desktop. |
| Wheel Wheel Wheel Wheel | Mouse wheel. |
| XDown XDown XDown XDown | XBUTTON pressed. |
| XUp XUp XUp XUp | XBUTTON released. |
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" />