Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
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.

GetKeyEventSource

Windows Mobile 6.5
4/8/2010

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


DWORD GetKeyEventSource(int vKey);

vKey

The virtual key code returned for a key event.

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

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

Community Additions

Show:
© 2015 Microsoft