CoreWindow.GetKeyState(VirtualKey) CoreWindow.GetKeyState(VirtualKey) CoreWindow.GetKeyState(VirtualKey) CoreWindow.GetKeyState(VirtualKey) Method

Definition

Retrieves the state of a virtual key.

public : CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey)
CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey) const;
public CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey)
Public Function GetKeyState(virtualKey As VirtualKey) As CoreVirtualKeyStates

Parameters

virtualKey
VirtualKey VirtualKey

The virtual key for which state is returned.

Returns

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).

See also