PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

how can I use "KeyDown" properly?

Hi,all there:
I test my application with "CGapiApplication".In the emulator,the "KeyDown" and "KeyUp" can be called correctly,but when i Download my application into my pocketPC(e740),there is no response from the key pressed,I try to find what happend with "SetError()",and no message return to me!Help me!
Please post your code for KeyUp/KeyDown here and we'll take a look. It's probably something simple.
Very samplely,it runs OK in Emulator but in my PPC(e740)!

Code:
HRESULT CMyApplication::KeyDown(DWORD dwKey, GDKEYLIST& keylist)
{
if(dwKey==keylist.vkStart)
{
......
}
return S_OK;
}
Well, that code segment looks correct. Have you tried using vkA and vkB to see if they work? And just to be sure, vkStart should be mapped to your dPad button. You're not altering the virtual keymapping anywhere are you?