Condividi tramite


InputKeyboardSource.GetKeyStateForCurrentThread(VirtualKey) Method

Definition

Retrieves the state of the supplied virtual-key at the time of the current input message (on the current thread).

public:
 static CoreVirtualKeyStates GetKeyStateForCurrentThread(VirtualKey virtualKey);
 static CoreVirtualKeyStates GetKeyStateForCurrentThread(VirtualKey const& virtualKey);
public static CoreVirtualKeyStates GetKeyStateForCurrentThread(VirtualKey virtualKey);
function getKeyStateForCurrentThread(virtualKey)
Public Shared Function GetKeyStateForCurrentThread (virtualKey As VirtualKey) As CoreVirtualKeyStates

Parameters

virtualKey
VirtualKey

Returns

The flags indicating the current state of the supplied virtual-key at the time of the current input message (on the current thread).

Note

All keys support the Locked state (not just the standard Caps Lock and Num Lock keys).

Applies to

See also