ICoreWindow.GetKeyState method

Applies to Windows and Windows Phone

Specifies a method that gets the state of a key.

Syntax

Function GetKeyState(
  virtualKey As VirtualKey 
) As CoreVirtualKeyStates

Parameters

virtualKey

Type: VirtualKey

The virtual key for which state will be returned.

Return value

Type: CoreVirtualKeyStates

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.UI.Core
Windows::UI::Core [C++]

Metadata

Windows.winmd

See also

ICoreWindow
CoreVirtualKeyStates

 

 

Show:
© 2014 Microsoft