|
Documentation
|
|||
|
CGapiInputOverviewGapiInput locks all hardware keys on Windows CE and maps up/down/left/right to the correct display orientation. This document has been updated for use with GapiDraw 4.0 or later.
CGapInput::OpenInputEnables a full, exclusive lock of all hardware keys on Windows CE. This is automatically done in the constructor.
ParametersNone Return valuesIf this method succeeds, the return value is GD_OK. If the method fails, the return value may be one of the following return values: GDERR_LOCKEDKEYS RemarksWhen destroying the CGapiInput object, the keyboard lock will be released automatically. CGapiInput will try to use the library "gx.dll" to lock the keys of the mobile device. This is the preferred method of locking all the keys on Windows Mobile devices. For CGapiInput to find the file "gx.dll" it needs to be placed in the \Windows folder or the application folder of your program. If the file gx.dll should not be available CGapiDisplay::OpenDisplay will return GDERR_NOGAPI, but you will still be able to use CGapiInput for mapping the directional keys. CGapInput::CloseInputReleases the exclusive lock on all hardware keys. This is automatically done in the destructor.
ParametersNone Return valuesIf this method succeeds, the return value is GD_OK. If the method fails, the return value may be one of the following return values: GDERR_NOTLOCKED CGapInput::GetKeyListReturns a list of virtual key codes matching the current display orientation.
Parameters
Return valuesIf this method succeeds, the return value is GD_OK. If the method fails, the return value may be one of the following return values: GDERR_INVALIDPARAMS RemarksThe list of virtual key codes contains values for three of the hardware buttons, the start menu button and the arrow keys on Pocket PCs. The orientation of the arrow keys (up/down/left/right) will be adjusted to match the display orientation. Up will for example always be -Y. |