I have ASUS A620BT + eVC 3.0 + PF_0_8_1
During my game if I press left, up, right or down button on my PocketPC
The - void Pyromania::ButtonDown (int button){} is called
At first I get the right key code (from int button) - 37, 38, 39, 40 (the same as vkLeft, vkUp...)
but suddenly after that the ButtonDown called with the second "wrong key code" it is the same key code for all four buttons - 132 !?
When I press any other button - contacts, record etc.
At first I get the "wrong key code" - it is the same for all other buttons - 91
and suddenly after that I get the right key code 193, 194 etc - different for different buttons.
I use the standard PocketFrog_0_8_1 game class with virtual ButtonDown function?
Now I filter incoming keycodes with something like this:
void Pyromania::ButtonDown (int button)
{
if(inbutton ==m_keys.vkRight || inbutton ==m_keys.vkA || //etc )
{
//Get input
}
}
so is the key codes:
int16_t vkUp;
int16_t vkDown;
int16_t vkLeft;
int16_t vkRight;
int16_t vkStart;
int16_t vkA;
int16_t vkB;
int16_t vkC;
int16_t vkAux1;
int16_t vkAux2;
int16_t vkAux3;
int16_t vkAux4;
int16_t vkAux5;
int16_t vkAux6;
int16_t vkAux7;
int16_t vkAux8;
(as seen in input.h)
all the "right keycodes" I could receive on "average PocketPC device" (without hardware keyboard)
I'm asking because I have customizable buttons in my game and I should separate right from wrong key codes. Is there any other better way?