ICoreWindow.GetKeyState(VirtualKey) Method

Definition

Specifies a method that gets the state of a key.

public:
 CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey);
CoreVirtualKeyStates GetKeyState(VirtualKey const& virtualKey);
public CoreVirtualKeyStates GetKeyState(VirtualKey virtualKey);
function getKeyState(virtualKey)
Public Function GetKeyState (virtualKey As VirtualKey) As CoreVirtualKeyStates

Parameters

virtualKey
VirtualKey

The virtual key for which state will be returned.

Returns

The state of the supplied virtual key when the input event was raised.

Applies to

See also