Dela via


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 is an extended key, such as the right-hand ALT and CTRL keys that appear on an Enhanced 101/102-key keyboard. See Extended-Key Flag for more info.

IsKeyReleased

Whether a key has moved from a pressed to a released status. See Transition-State Flag for more info.

IsMenuKeyDown

Whether the Alt key (represented by the VirtualKey.Menu value) is currently pressed down. See Context Code for more info.

RepeatCount

The number of times a key was pressed. See Repeat Count for more info.

ScanCode

The scan code for a key that was pressed. See Scan Code for more info.

WasKeyDown

Whether a key is currently pressed down. See Previous Key-State Flag for more info.

Applies to

See also