PhysicalKeyStatus Struct

Definition

Specifies the possible states of a physical keyboard key.

/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
struct PhysicalKeyStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
public struct PhysicalKeyStatus
var physicalKeyStatus = {
repeatCount : /* Your value */,
scanCode : /* Your value */,
isExtendedKey : /* Your value */,
isMenuKeyDown : /* Your value */,
wasKeyDown : /* Your value */,
isKeyReleased : /* Your value */
}
Public Structure PhysicalKeyStatus
Inheritance
PhysicalKeyStatus
Attributes

Remarks

The keyboard device driver receives scan codes from the keyboard and interprets and translates (maps) them into virtual-key codes (device-independent values defined by the system to identify the purpose of a key).

Fields

IsExtendedKey

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

The key moved from a pressed to a released state. See Transition State Flag for more info.

IsMenuKeyDown

The Alt key (represented by the VirtualKey.Menu value) is currently pressed down.

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

The key is currently pressed down. See Previous Key-State Flag for more info.

Applies to

See also