Core​Physical​Key​Status Core​Physical​Key​Status Core​Physical​Key​Status Struct

Definition

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

public struct CorePhysicalKeyStatuspublic struct CorePhysicalKeyStatusPublic Structure CorePhysicalKeyStatus
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

IsExtendedKey IsExtendedKey IsExtendedKey

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

public field PlatForm::Boolean IsExtendedKeypublic field bool IsExtendedKeyPublic Field IsExtendedKey
Attributes

IsKeyReleased IsKeyReleased IsKeyReleased

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

public field PlatForm::Boolean IsKeyReleasedpublic field bool IsKeyReleasedPublic Field IsKeyReleased
Attributes

IsMenuKeyDown IsMenuKeyDown IsMenuKeyDown

Whether the menu key is currently pressed down.

public field PlatForm::Boolean IsMenuKeyDownpublic field bool IsMenuKeyDownPublic Field IsMenuKeyDown
Attributes

RepeatCount RepeatCount RepeatCount

The number of times a key was pressed.

public field unsigned short RepeatCountpublic field uint RepeatCountPublic Field RepeatCount
Attributes

ScanCode ScanCode ScanCode

The scan code for a key that was pressed.

public field unsigned short ScanCodepublic field uint ScanCodePublic Field ScanCode
Attributes

WasKeyDown WasKeyDown WasKeyDown

Whether a key is currently pressed down.

public field PlatForm::Boolean WasKeyDownpublic field bool WasKeyDownPublic Field WasKeyDown
Attributes