Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CoreWindow.GetKeyState method

Applies to Windows and Windows Phone

Gets the state of a key.

Syntax


public CoreVirtualKeyStates GetKeyState(
  VirtualKey virtualKey
)

Parameters

virtualKey

Type: VirtualKey

The virtual key for which state is returned.

Return value

Type: CoreVirtualKeyStates

The state of the supplied virtual key when the input event fired.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

CoreWindow
CoreVirtualKeyStates

 

 

Show:
© 2014 Microsoft