Page 1 of 1

HELP: Problem with keyboard input using RX3700/3715

PostPosted: Apr 28, 2005 @ 9:25am
by pacomac
I am having problems with one of my games not running correctly on the RX3700 family of Pocket PC's. It seems that our program is not responding to certain keys when using the GetAsyncKeyState() function.

Most games require the ability to check the state of a key every frame rather than wait for the usual key up and down messages using Windows messaging (WM_KEYUP and WM_KEYDOWN). For this reason I use the GetAsyncKeyState() function to perform an operation whilst a key is held down.

Here are some examples of how we call the function:

GXKeyList g_gxkl;
g_gxkl = GXGetDefaultKeys(GX_NORMALKEYS); // Using GAPI

if(GetAsyncKeyState(g_gxkl.vkA) & 0x8000) {
// Do something here!
}

while(GetAsyncKeyState(g_gxkl.vkA))
{
// Do something here!
}

Unfortunately this doesn't appear to be functioning correctly on the RX37000 and RX3715 models. Is there a reason why these keys are not being processed and is there a simply solution to the problem?

I am using GAPI so the GXOpenInput() should take control of the 4 buttons but it seems the code inside the GetAsyncKeyState() loop doesn't get called.

I don't have a problem with the same code on any other models and are currently relying on customer feedback to find a solution since we don't have one of these models in house. Any help regarding this matter would be greatly appreciated.