InputKeyboardSource.GetKeyState(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.
Retrieves the state of the supplied virtual-key at the time of the input message currently being processed (which could be in the past, if the input queue contains unprocessed messages).
public:
virtual VirtualKeyStates GetKeyState(VirtualKey virtualKey) = GetKeyState;
VirtualKeyStates GetKeyState(VirtualKey const& virtualKey);
public VirtualKeyStates GetKeyState(VirtualKey virtualKey);
function getKeyState(virtualKey)
Public Function GetKeyState (virtualKey As VirtualKey) As VirtualKeyStates
Parameters
- virtualKey
- VirtualKey
The virtual-key for which the state is returned.
Returns
The flags indicating the state of the supplied virtual-key at the time of the input message currently being processed
Note
All keys support the Locked
state (not just the standard Caps Lock and Num Lock keys).