CorePhysicalKeyStatus structure
Collapse the table of content
Expand the table of content

CorePhysicalKeyStatus structure

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

Syntax


public value 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, introduced version 10.0.10240.0

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()]

See also

Windows.UI.Core
AccerleratorKeyEventArgs.KeyStatus
CharacterReceivedEventArgs.KeyStatus
KeyEventArgs.KeyStatus

 

 

Show:
© 2016 Microsoft