次の方法で共有


GetKeyEventSource (Compact 2013)

3/28/2014

This function allows you to query whether a virtual key code came from a d-pad, rocker, or from software.

Syntax

DWORD GetKeyEventSource(int vKey);

Parameters

  • vKey
    The virtual key code returned for a key event.

Return Value

This function will return one of the following values to indicate the source of the key event.

#define KEY_SOURCE_UNKNOWN_HARDWARE 0x0000

#define KEY_SOURCE_DPAD 0x0001

#define KEY_SOURCE_ROCKER 0x0002

#define KEY_SOURCE_SOFTWARE 0x0003

Remarks

For more information about when rocker or d-pad events will be generated, see D-pad Virtual Key Code Support.

Requirements

Header

miscsvcs.h

See Also

Reference

Keyboard Functions