CoreWindow.GetAsyncKeyState(VirtualKey) CoreWindow.GetAsyncKeyState(VirtualKey) CoreWindow.GetAsyncKeyState(VirtualKey) CoreWindow.GetAsyncKeyState(VirtualKey) Method

Definition

Asynchronously retrieves the state of a virtual key.

public : CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey)
CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey) const;
public CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey)
Public Function GetAsyncKeyState(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