Detecting Key Presses
To detect key presses, the Windows CE GetAsyncKeyState function is used in all but the simplest of cases, due to the variety of behaviors exhibited by keyboard drivers available on Windows Mobile-based Pocket PC devices.
Note GAPI is deprecated. Use DirectDraw and Direct3D Mobile APIs instead.
Determining the device version and whether there is an external keyboard are common questions for developers, and GAPI helps provide an answer. For example, external keyboards are becoming more common, and having your code check for keyboards can help add functionality to your application for keyboard users.
GAPI includes the GXKeyList structure to provide information about the default hardware button assignments.
See Also
Send Feedback on this topic to the authors