CorePhysicalKeyStatus Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the set of physical key status items that can be obtained.
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
struct CorePhysicalKeyStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public struct CorePhysicalKeyStatus
Public Structure CorePhysicalKeyStatus
- Inheritance
-
CorePhysicalKeyStatus
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
IsExtendedKey |
Whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an Enhanced 101/102-key keyboard. See Extended-Key Flag for more info. |
IsKeyReleased |
Whether a key has moved from a pressed to a released status. See Transition-State Flag for more info. |
IsMenuKeyDown |
Whether the Alt key (represented by the VirtualKey.Menu value) is currently pressed down. See Context Code for more info. |
RepeatCount |
The number of times a key was pressed. See Repeat Count for more info. |
ScanCode |
The scan code for a key that was pressed. See Scan Code for more info. |
WasKeyDown |
Whether a key is currently pressed down. See Previous Key-State Flag for more info. |