CorePhysicalKeyStatus CorePhysicalKeyStatus CorePhysicalKeyStatus Struct

Definition

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

public : struct CorePhysicalKeyStatus
public struct CorePhysicalKeyStatus
Public 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.

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;