Windows Dev Center

CorePhysicalKeyStatus structure

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

Syntax


public struct CorePhysicalKeyStatus

Members

The CorePhysicalKeyStatus structure has these fields.

FieldData typeDescription
IsExtendedKey

System.Boolean [.NET] | Platform::Boolean [C++]

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

IsKeyReleased

System.Boolean [.NET] | Platform::Boolean [C++]

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

IsMenuKeyDown

System.Boolean [.NET] | Platform::Boolean [C++]

Whether the menu key is currently pressed down.

RepeatCount

System.UInt32 [.NET] | uint32 [C++]

The number of times a key was pressed.

ScanCode

System.UInt32 [.NET] | uint32 [C++]

The scan code for a key that was pressed.

WasKeyDown

System.Boolean [.NET] | Platform::Boolean [C++]

Whether a key is currently pressed down.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]
[WebHostHidden()]

 

 

Show:
© 2015 Microsoft