CorePhysicalKeyStatus CorePhysicalKeyStatus CorePhysicalKeyStatus Struct


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

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


IsExtendedKey IsExtendedKey IsExtendedKey

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

Platform::Boolean IsExtendedKey;
bool IsExtendedKey;
IsExtendedKey As bool;

IsKeyReleased IsKeyReleased IsKeyReleased

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

Platform::Boolean IsKeyReleased;
bool IsKeyReleased;
IsKeyReleased As bool;

IsMenuKeyDown IsMenuKeyDown IsMenuKeyDown

Whether the menu key is currently pressed down.

Platform::Boolean IsMenuKeyDown;
bool IsMenuKeyDown;
IsMenuKeyDown As bool;

RepeatCount RepeatCount RepeatCount

The number of times a key was pressed.

unsigned int RepeatCount;
uint RepeatCount;
RepeatCount As uint;

ScanCode ScanCode ScanCode

The scan code for a key that was pressed.

unsigned int ScanCode;
uint ScanCode;
ScanCode As uint;

WasKeyDown WasKeyDown WasKeyDown

Whether a key is currently pressed down.

Platform::Boolean WasKeyDown;
bool WasKeyDown;
WasKeyDown As bool;