This site is no longer active and is available for archival purposes only. Registration and login is disabled.

HELP: Problem with keyboard input using RX3700/3715


HELP: Problem with keyboard input using RX3700/3715

Postby pacomac » Apr 28, 2005 @ 9:25am

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.
pacomac
pm Member
 
Posts: 22
Joined: Sep 22, 2003 @ 2:39pm


Return to Windows Mobile


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum