Jaa


CoreVirtualKeyStates Enum

Definition

Specifies flags for indicating the possible states of a virtual key.

This enumeration supports a bitwise combination of its member values.

public enum class CoreVirtualKeyStates
/// [System.Flags]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CoreVirtualKeyStates
[System.Flags]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CoreVirtualKeyStates
Public Enum CoreVirtualKeyStates
Inheritance
CoreVirtualKeyStates
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
None 0

The key is up or in no specific state.

Down 1

The key is pressed down for the input event.

Locked 2

The key is in a toggled or modified state (for example, Caps Lock) for the input event.

All keys support the Locked state (not just the standard Caps Lock and Num Lock keys).

Applies to

See also