CoreWindow.GetAsyncKeyState(VirtualKey) Method
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.
Asynchronously retrieves the state of a virtual key.
public:
virtual CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey) = GetAsyncKeyState;
CoreVirtualKeyStates GetAsyncKeyState(VirtualKey const& virtualKey);
public CoreVirtualKeyStates GetAsyncKeyState(VirtualKey virtualKey);
function getAsyncKeyState(virtualKey)
Public Function GetAsyncKeyState (virtualKey As VirtualKey) As CoreVirtualKeyStates
Parameters
- 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).