InputKeyboardSource.GetKeyState(VirtualKey) Method

Definition

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

Applies to

See also