CorePhysicalKeyStatus Struct

Definition

Specifies the set of physical key status items that can be obtained.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct CorePhysicalKeyStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct CorePhysicalKeyStatus
Public Structure CorePhysicalKeyStatus
Inheritance
CorePhysicalKeyStatus
Attributes

Windows requirements

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

Fields

IsExtendedKey

Whether the key that was pressed maps to an extended ASCII character.

IsKeyReleased

Whether a key has moved from a pressed to a released status.

IsMenuKeyDown

Whether the Alt key (represented by the VirtualKey.Menu value) is currently pressed down.

RepeatCount

The number of times a key was pressed.

ScanCode

The scan code for a key that was pressed.

WasKeyDown

Whether a key is currently pressed down.

Applies to

See also