CoreWindow.GetKeyState(VirtualKey) Method

Definition

Retrieves the state of a virtual key.

public:
 virtual CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey) = GetKeyState;
CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey);
public CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey);
function getKeyState(virtualKey)
Public Function GetKeyState (virtualKey As VirtualKey) As CoreVirtualKeyStates

Parameters

virtualKey
VirtualKey

The virtual key for which state is returned.

Returns

CoreVirtualKeyStates

The flags indicating the current state of the supplied virtual key when the input event fired.

Note

All keys support the Locked state (not just the standard Caps Lock and Num Lock keys).

Implements

Applies to

See also