Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

InputKeyboardSource.GetKeyStateForCurrentThread(VirtualKey) Method

Definition

Namespace:
Microsoft.UI.Input

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

Applies to

See also


Feedback

Was this page helpful?