InjectedInputMouseOptions Enum

Definition

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

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.

HWheel 4096

Mouse tilt wheel.

LeftDown 2

Left mouse button pressed.

LeftUp 4

Left mouse button released.

MiddleDown 32

Middle mouse button pressed.

MiddleUp 64

Middle mouse button released.

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.

MoveNoCoalesce 8192

Move (do not coalesce move messages). The application processes all mouse events since the previously processed mouse event. See Move.

None 0

No mouse modifier. Default.

RightDown 8

Right mouse button pressed.

RightUp 16

Right mouse button released.

VirtualDesk 16384

Map coordinates to the entire virtual desktop.

Wheel 2048

Mouse wheel.

XDown 128

XBUTTON pressed.

XUp 256

XBUTTON released.

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" />

Applies to

See also