PDA

View Full Version : GameAPI.ppl issues


David Chua
10-26-2006, 01:38 AM
Hi Kornalius,

While I was trying out simple game programming I've notice that the "D" button on my Axim x51v was not mapped so, I review the GameAPI.ppl and found that it declares only up to "vkC$" therefore, I add "vkD$" to it. At the same time adding:

else if (key$ == keys.vkB$)
g_key.vkB$ = Down$;

to proc g_KeyEvent(key$, Down$) and it works fine. However, I've also notice the following lines:

else if (key$ == keys.vkC$)
g_key.vkStart$ = Down$;

which I think it should be "g_key.vkC$ = Down$;". Anyway, I've change it and everything seems to be ok. Please verify and let me know if I'm doing correctly.

I attached the modified file for your reference.

Regards.[br]1161823126_33_FT0_gameapi.zip

David Chua
10-26-2006, 01:40 AM
Sorry, the added part is:

else if (key$ == keys.vkD$)
g_key.vkD$ = Down$;

Fool by the cut & paste.

Cheers.

kornalius
10-26-2006, 03:12 AM
Thank you very we will make the neccessary corrections.

kornalius
10-26-2006, 07:00 PM
Hi,

We have fixed the C button. However the D button info really was just stored in Aux1.

We won't make the change to D but keep it as it is. Aux1 will contain the D button information.